Commit 2bc3103465d56356c4b689dd6032c996b4a191e8
1 parent
2c658df1
Exists in
master
and in
5 other branches
Add timesince in forum post
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
forum/templates/post/post_list.html
@@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
27 | <div class="post_content"> | 27 | <div class="post_content"> |
28 | <div class="card-data"> | 28 | <div class="card-data"> |
29 | <p class="comment-date"> | 29 | <p class="comment-date"> |
30 | - <i class="fa fa-clock-o"></i> {{ post.post_date }} | 30 | + <i class="fa fa-clock-o"></i> {{ post.post_date|timesince }} {% trans 'ago' %} |
31 | {% if post.is_modified %} | 31 | {% if post.is_modified %} |
32 | <em> - {% trans 'Edited' %}</em> | 32 | <em> - {% trans 'Edited' %}</em> |
33 | {% endif %} | 33 | {% endif %} |
forum/templates/post/post_render.html
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | <div class="post_content"> | 25 | <div class="post_content"> |
26 | <div class="card-data"> | 26 | <div class="card-data"> |
27 | <p class="comment-date"> | 27 | <p class="comment-date"> |
28 | - <i class="fa fa-clock-o"></i> {{ post.post_date }} | 28 | + <i class="fa fa-clock-o"></i> {{ post.post_date|timesince }} {% trans 'ago' %} |
29 | {% if post.post_date != post.modifiction_date %} | 29 | {% if post.post_date != post.modifiction_date %} |
30 | <em> - {% trans 'Edited' %}</em> | 30 | <em> - {% trans 'Edited' %}</em> |
31 | {% endif %} | 31 | {% endif %} |