diff options
author | Vitaly Takmazov | 2019-04-07 04:10:09 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-04-07 04:10:09 +0300 |
commit | 618e320e952ba292a13cbe80981807c866baf7c6 (patch) | |
tree | d551c35d1546409c9bf623f09d010634e82d6dd3 /src/main/resources | |
parent | f1278ae7119fcb77326c6d520915ecaa1527d39c (diff) |
Display “edited” in web
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/templates/views/partial/message.html | 3 | ||||
-rw-r--r-- | src/main/resources/templates/views/thread.html | 6 |
2 files changed, 9 insertions, 0 deletions
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 }} </time> </a> + {% if msg.created != msg.updatedAt %} + · Edited + {% endif %} </div> <div class="msg-tags"> {{ 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 }} </time> </a> + {% if msg.updatedAt != msg.created %} + · Edited + {% endif %} </div> <div class="msg-tags"> {{ tags(msg.user.name, msg.tags | tagsList) }} @@ -145,6 +148,9 @@ {{ msg.created | prettyTime }} </time> </a> + {% if msg.updatedAt != msg.created %} + · Edited + {% endif %} </div> </div> <div class="msg-txt">{{ msg | formatMessage }}</div> |