From c76b865d88b0ba84d809b6d8928b55df4b18e253 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 6 Sep 2018 16:19:41 +0100 Subject: [PATCH] =?UTF-8?q?Use=20friendlier=20relative=20dates=20for=20?= =?UTF-8?q?=E2=80=98last=20edited=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because ‘2 months ago’ is more human-sounding than ‘70 days ago’. Using this pattern (borrowed from the API integration page) will also use Javascript to keep the time updated, so ‘just now’ will turn into ‘1 minute ago’ without having to reload the page. --- app/templates/views/templates/template.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/templates/views/templates/template.html b/app/templates/views/templates/template.html index 627dcac69..aaf0f08fa 100644 --- a/app/templates/views/templates/template.html +++ b/app/templates/views/templates/template.html @@ -57,7 +57,13 @@
{% if template._template.updated_at %} -

Last edited {{ template._template.updated_at|format_delta }}

+

+ Last edited + +

+   See previous versions