From 618e320e952ba292a13cbe80981807c866baf7c6 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 7 Apr 2019 04:10:09 +0300 Subject: Display “edited” in web --- src/main/resources/templates/views/partial/message.html | 3 +++ src/main/resources/templates/views/thread.html | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'src/main/resources/templates/views') diff --git a/src/main/resources/templates/views/partial/message.html b/src/main/resources/templates/views/partial/message.html index bb36b25e..9a4d6452 100644 --- a/src/main/resources/templates/views/partial/message.html +++ b/src/main/resources/templates/views/partial/message.html @@ -13,6 +13,9 @@ {{ msg.created | prettyTime }} + {% if msg.created != msg.updatedAt %} + · Edited + {% endif %}
{{ tags(msg.user.name, msg.tags | tagsList) }} diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html index 2092cc1b..252b41b0 100644 --- a/src/main/resources/templates/views/thread.html +++ b/src/main/resources/templates/views/thread.html @@ -18,6 +18,9 @@ {{ msg.created | prettyTime }} + {% if msg.updatedAt != msg.created %} + · Edited + {% endif %}
{{ tags(msg.user.name, msg.tags | tagsList) }} @@ -145,6 +148,9 @@ {{ msg.created | prettyTime }} + {% if msg.updatedAt != msg.created %} + · Edited + {% endif %}
{{ msg | formatMessage }}
-- cgit v1.2.3