From e7ae4a257bd1e75fdd7ecd889684a8994cf28df6 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 19 Feb 2020 18:04:04 -0800 Subject: [PATCH] Missed a template --- fedireads/templates/snippets/status.html | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 fedireads/templates/snippets/status.html diff --git a/fedireads/templates/snippets/status.html b/fedireads/templates/snippets/status.html new file mode 100644 index 00000000..641ebab2 --- /dev/null +++ b/fedireads/templates/snippets/status.html @@ -0,0 +1,48 @@ +{% load fr_display %} +
+

+ {% include 'snippets/avatar.html' with user=activity.user %} + {% include 'snippets/username.html' with user=activity.user %} + {% if activity.status_type == 'Review' %} + {# display a review #} + reviewed {{ activity.book.data.title }} +

+
+ {% include 'snippets/book.html' with book=activity.book size=large %} + +

{{ activity.name }}

+

{{ activity.rating | stars }}

+

{{ activity.content | safe }}

+
+
+ {% if activity.favorites.all %} + + {{ activity.favorites.count }} like(s) + + {% endif %} +
+ {% csrf_token %} + +
+
+ {% csrf_token %} + + {{ comment_form.content }} + +
+
+ {% elif activity.status_type == 'Note' %} + posted + {{ activity.content | safe }} + {% for book in activity.mention_books.all %} +
+ {% include 'snippets/book.html' with book=book size=large description=True %} +
+ {% endfor %} + {% else %} + {# generic handling for a misc activity, which perhaps should not be displayed at all #} + did {{ activity.activity_type }} + + {% endif %} +
+