diff options
Diffstat (limited to 'templates/activities/_post.html')
-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" %} |