summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-16 23:00:10 -0700
committerAndrew Godwin2022-11-16 23:00:10 -0700
commit716d8a766ae0c4e2539f2df601269a3203bcd715 (patch)
tree6fca650c5960b06494ba322d4621727b81bd4fa0 /templates
parentb13c239213147b7acae4060aff35640d625b5169 (diff)
downloadtakahe-716d8a766ae0c4e2539f2df601269a3203bcd715.tar.gz
takahe-716d8a766ae0c4e2539f2df601269a3203bcd715.tar.bz2
takahe-716d8a766ae0c4e2539f2df601269a3203bcd715.zip
Show post images
Diffstat (limited to 'templates')
-rw-r--r--templates/activities/_post.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/activities/_post.html b/templates/activities/_post.html
index 6392c89..9d8db3b 100644
--- a/templates/activities/_post.html
+++ b/templates/activities/_post.html
@@ -41,6 +41,16 @@
{{ post.safe_content }}
</div>
+ {% if post.attachments.exists %}
+ <div class="attachments">
+ {% for attachment in post.attachments.all %}
+ {% if attachment.is_image %}
+ <a href="{{ attachment.remote_url }}" class="image"><img src="{{ attachment.remote_url }}" title="{{ attachment.name }}"></a>
+ {% endif %}
+ {% endfor %}
+ </div>
+ {% endif %}
+
{% if request.identity %}
<div class="actions">
{% include "activities/_like.html" %}