summaryrefslogtreecommitdiffstats
path: root/templates/activities/home.html
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-13 16:14:38 -0700
committerAndrew Godwin2022-11-13 16:15:14 -0700
commit34b24a0dcb044cb755e201ad1a83253d0690e78e (patch)
tree51e6842d9e1392fafcd617cf4de0fa7e28397c87 /templates/activities/home.html
parent5a8b6bb3d022a532562ad5fa6d629cfc48c51b46 (diff)
downloadtakahe-34b24a0dcb044cb755e201ad1a83253d0690e78e.tar.gz
takahe-34b24a0dcb044cb755e201ad1a83253d0690e78e.tar.bz2
takahe-34b24a0dcb044cb755e201ad1a83253d0690e78e.zip
More UI!
Diffstat (limited to 'templates/activities/home.html')
-rw-r--r--templates/activities/home.html31
1 files changed, 24 insertions, 7 deletions
diff --git a/templates/activities/home.html b/templates/activities/home.html
index 9fe4bba..c777ce8 100644
--- a/templates/activities/home.html
+++ b/templates/activities/home.html
@@ -1,15 +1,32 @@
{% extends "base.html" %}
-{% load crispy_forms_tags %}
{% block title %}Home{% endblock %}
{% block content %}
+ {% include "activities/_home_menu.html" %}
- {% crispy form form.helper %}
+ <section class="columns">
- {% for post in timeline_posts %}
- {% include "activities/_post.html" %}
- {% empty %}
- No posts yet.
- {% endfor %}
+ <div class="left-column">
+ {% for post in timeline_posts %}
+ {% include "activities/_post.html" %}
+ {% empty %}
+ No posts yet.
+ {% endfor %}
+ </div>
+
+ <div class="right-column">
+ <h2>Compose</h2>
+ <form action="." method="POST" class="compose">
+ {% csrf_token %}
+ {{ form.text }}
+ {{ form.content_warning }}
+ <div class="buttons">
+ <span class="button toggle" _="on click toggle .enabled then toggle .hidden on #id_content_warning">CW</span>
+ <button>Post</button>
+ </div>
+ </form>
+ </div>
+
+ </section>
{% endblock %}