From b228bd7c2ee554bbba28b2540015e37a94bc9917 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 1 Sep 2018 16:15:57 +0100 Subject: [PATCH] blog: Show when a post has been updated Signed-off-by: Michael Tremer --- src/templates/blog/modules/post.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/templates/blog/modules/post.html b/src/templates/blog/modules/post.html index d51099ac..c91f86b1 100644 --- a/src/templates/blog/modules/post.html +++ b/src/templates/blog/modules/post.html @@ -18,7 +18,12 @@ {% end %} {% if post.published_at %} - {{ locale.format_date(post.published_at, shorter=True, relative=False) }} + {% if post.updated_at and post.updated_at > post.published_at %} + {{ locale.format_date(post.published_at, shorter=True, relative=False) }}, + {{ _("Updated %s") % locale.format_date(post.updated_at, shorter=True) }} + {% else %} + {{ locale.format_date(post.published_at, shorter=True, relative=False) }} + {% end %} {% else %} {{ _("Not published") }} {% end %} -- 2.47.2