diff options
author | Andrew Godwin | 2022-11-16 23:00:10 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-16 23:00:10 -0700 |
commit | 716d8a766ae0c4e2539f2df601269a3203bcd715 (patch) | |
tree | 6fca650c5960b06494ba322d4621727b81bd4fa0 /templates | |
parent | b13c239213147b7acae4060aff35640d625b5169 (diff) | |
download | takahe-716d8a766ae0c4e2539f2df601269a3203bcd715.tar.gz takahe-716d8a766ae0c4e2539f2df601269a3203bcd715.tar.bz2 takahe-716d8a766ae0c4e2539f2df601269a3203bcd715.zip |
Show post images
Diffstat (limited to 'templates')
-rw-r--r-- | templates/activities/_post.html | 10 |
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" %} |