Commit 2bc3103465d56356c4b689dd6032c996b4a191e8

Authored by Zambom
1 parent 2c658df1

Add timesince in forum post

forum/templates/post/post_list.html
... ... @@ -27,7 +27,7 @@
27 27 <div class="post_content">
28 28 <div class="card-data">
29 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 31 {% if post.is_modified %}
32 32 <em> - {% trans 'Edited' %}</em>
33 33 {% endif %}
... ...
forum/templates/post/post_render.html
... ... @@ -25,7 +25,7 @@
25 25 <div class="post_content">
26 26 <div class="card-data">
27 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 29 {% if post.post_date != post.modifiction_date %}
30 30 <em> - {% trans 'Edited' %}</em>
31 31 {% endif %}
... ...