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 %} +
+