changeset 88:a40cf98f7f8d

Make an "HGshortdate" keyword with the date only (no time)
author Franz Glasner <hg@dom66.de>
date Fri, 23 Feb 2018 13:54:15 +0100
parents a9b532915ce0
children 2920f3e09f33
files extensions/kwarchive.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/kwarchive.py	Fri Feb 23 13:53:51 2018 +0100
+++ b/extensions/kwarchive.py	Fri Feb 23 13:54:15 2018 +0100
@@ -370,6 +370,7 @@
         "HGrevision": ctx.hex(),
         "Revision": templatefilters.short(ctx.hex()),
         "Date": templatefilters.isodatesec(ctx.date()),
+        "HGshortdate": templatefilters.shortdate(ctx.date()),
     }
     if user_filter == "user":
         keywords["Author"] = templatefilters.emailuser(ctx.user())