From 2bc3103465d56356c4b689dd6032c996b4a191e8 Mon Sep 17 00:00:00 2001 From: Zambom Date: Fri, 14 Oct 2016 15:43:35 -0300 Subject: [PATCH] Add timesince in forum post --- forum/templates/post/post_list.html | 2 +- forum/templates/post/post_render.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forum/templates/post/post_list.html b/forum/templates/post/post_list.html index 9266c99..d448b01 100644 --- a/forum/templates/post/post_list.html +++ b/forum/templates/post/post_list.html @@ -27,7 +27,7 @@

- {{ post.post_date }} + {{ post.post_date|timesince }} {% trans 'ago' %} {% if post.is_modified %} - {% trans 'Edited' %} {% endif %} diff --git a/forum/templates/post/post_render.html b/forum/templates/post/post_render.html index 1b82d32..5f00a47 100644 --- a/forum/templates/post/post_render.html +++ b/forum/templates/post/post_render.html @@ -25,7 +25,7 @@

- {{ post.post_date }} + {{ post.post_date|timesince }} {% trans 'ago' %} {% if post.post_date != post.modifiction_date %} - {% trans 'Edited' %} {% endif %} -- libgit2 0.21.2