diff mercurial/templates/monoblue/changeset.tmpl @ 35138:e397f8585953

hgweb: show changeset age in more places (gitweb and monoblue) mercurial.js has a process_dates() function that calculates relative age for a given date, it works for all elements with "age" css class. If those elements also have "date" css class, the original text is preserved and age is added at the end. This patch adds these two css classes in some pages in gitweb and monoblue that weren't already using this feature.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 21 Nov 2017 20:28:57 +0800
parents e9a8a941950a
children 1721ce06100a
line wrap: on
line diff
--- a/mercurial/templates/monoblue/changeset.tmpl	Sun Nov 19 05:34:50 2017 +0100
+++ b/mercurial/templates/monoblue/changeset.tmpl	Tue Nov 21 20:28:57 2017 +0800
@@ -44,7 +44,7 @@
         <dt>author</dt>
         <dd>{author|obfuscate}</dd>
         <dt>date</dt>
-        <dd>{date|rfc822date}</dd>
+        <dd class="date age">{date|rfc822date}</dd>
         {branch%changesetbranch}
         <dt>changeset {rev}</dt>
         <dd><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></dd>