From 39bcd7ac0050b98ecf99eddb397fa895ee37b737 Mon Sep 17 00:00:00 2001 From: Tyler Kennedy Date: Thu, 8 Dec 2022 12:59:36 -0500 Subject: Move image attachments on posts into the content warning block. (#148) Also adds alt text to image attachments.--- templates/activities/_post.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'templates/activities') diff --git a/templates/activities/_post.html b/templates/activities/_post.html index 4e5cb7c..099a35f 100644 --- a/templates/activities/_post.html +++ b/templates/activities/_post.html @@ -70,6 +70,18 @@
{{ post.safe_content_local }} + + {% if post.attachments.exists %} +
+ {% for attachment in post.attachments.all %} + {% if attachment.is_image %} + + {{ attachment.name }} + + {% endif %} + {% endfor %} +
+ {% endif %}
{% if post.edited %} @@ -78,15 +90,5 @@ {% endif %} - {% if post.attachments.exists %} -
- {% for attachment in post.attachments.all %} - {% if attachment.is_image %} - - {% endif %} - {% endfor %} -
- {% endif %} - -- cgit v1.2.3