From 34b24a0dcb044cb755e201ad1a83253d0690e78e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 13 Nov 2022 16:14:38 -0700 Subject: More UI! --- templates/activities/_home_menu.html | 6 ++++++ templates/activities/_post.html | 15 ++++++++------- templates/activities/federated.html | 21 +++++++++++++++++++++ templates/activities/home.html | 31 ++++++++++++++++++++++++------- 4 files changed, 59 insertions(+), 14 deletions(-) create mode 100644 templates/activities/_home_menu.html create mode 100644 templates/activities/federated.html (limited to 'templates/activities') diff --git a/templates/activities/_home_menu.html b/templates/activities/_home_menu.html new file mode 100644 index 0000000..29d19e9 --- /dev/null +++ b/templates/activities/_home_menu.html @@ -0,0 +1,6 @@ + diff --git a/templates/activities/_post.html b/templates/activities/_post.html index eef09db..a5e637f 100644 --- a/templates/activities/_post.html +++ b/templates/activities/_post.html @@ -1,4 +1,5 @@ {% load static %} +{% load activity_tags %}
{% if post.author.icon_uri %} @@ -7,20 +8,20 @@ {% endif %} -

- - {{ post.author.name_or_handle }} @{{ post.author.handle }} - -

+ + + {{ post.author.name_or_handle }} @{{ post.author.handle }} + +
{{ post.safe_content }}
diff --git a/templates/activities/federated.html b/templates/activities/federated.html new file mode 100644 index 0000000..8d8297b --- /dev/null +++ b/templates/activities/federated.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block title %}Federated Timeline{% endblock %} + +{% block content %} + {% include "activities/_home_menu.html" %} + +
+
+ {% for post in timeline_posts %} + {% include "activities/_post.html" %} + {% empty %} + No posts yet. + {% endfor %} +
+
+

?

+
+ +
+{% endblock %} 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 %} +
- {% for post in timeline_posts %} - {% include "activities/_post.html" %} - {% empty %} - No posts yet. - {% endfor %} +
+ {% for post in timeline_posts %} + {% include "activities/_post.html" %} + {% empty %} + No posts yet. + {% endfor %} +
+ +
+

Compose

+
+ {% csrf_token %} + {{ form.text }} + {{ form.content_warning }} +
+ CW + +
+
+
+ +
{% endblock %} -- cgit v1.2.3