From 6c7ddedd342553b53dd98c8de9cbe9e8e2e8cd7c Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Sun, 27 Nov 2022 13:09:46 -0500 Subject: Post editing --- templates/activities/_post.html | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'templates/activities/_post.html') diff --git a/templates/activities/_post.html b/templates/activities/_post.html index ebe5696..e294698 100644 --- a/templates/activities/_post.html +++ b/templates/activities/_post.html @@ -18,13 +18,11 @@ {% elif post.visibility == 4 %} {% endif %} - - {% if post.published %} - {{ post.published | timedeltashort }} - {% else %} - {{ post.created | timedeltashort }} - {% endif %} - + {% if post.published %} + {{ post.published | timedeltashort }} + {% else %} + {{ post.created | timedeltashort }} + {% endif %} {% if request.identity %} @@ -32,14 +30,19 @@ {% include "activities/_reply.html" %} {% include "activities/_like.html" %} {% include "activities/_boost.html" %} + {% if post.author == request.identity %} + + Edit + Delete + {% endif %} {% endif %} @@ -57,6 +60,12 @@ {{ post.safe_content_local }} + {% if post.edited %} +
+ Edited {{ post.edited | timedeltashort }} ago +
+ {% endif %} + {% if post.attachments.exists %}
{% for attachment in post.attachments.all %} -- cgit v1.2.3