# HG changeset patch # User Benoit Allard # Date 1304002959 -7200 # Node ID b24e5a708fad13c3ff723623c1fa6ae386adc7b7 # Parent 1c38777f7b8ada15d205d32e0d98ac3fdaa90df9 web: Made elapsed time calculation dynamic (javascript). This allow safe caching of the pages by the browser and still display the right amount of elapsed time upon page refresh. If javascript is disabled, absolute time is displayed, leaving it readable. All the templates have been updated. diff -r 1c38777f7b8a -r b24e5a708fad mercurial/templates/coal/header.tmpl --- a/mercurial/templates/coal/header.tmpl Wed Apr 27 21:55:46 2011 -0400 +++ b/mercurial/templates/coal/header.tmpl Thu Apr 28 17:02:39 2011 +0200 @@ -4,3 +4,4 @@ + diff -r 1c38777f7b8a -r b24e5a708fad mercurial/templates/coal/map --- a/mercurial/templates/coal/map Wed Apr 27 21:55:46 2011 -0400 +++ b/mercurial/templates/coal/map Thu Apr 28 17:02:39 2011 +0200 @@ -197,7 +197,7 @@ {name|escape} {description} {contact|obfuscate} - {lastchange|age} + {lastchange|date} {archives%indexarchiveentry} \n' indexarchiveentry = ' ↓{type|escape}' diff -r 1c38777f7b8a -r b24e5a708fad mercurial/templates/gitweb/changelogentry.tmpl --- a/mercurial/templates/gitweb/changelogentry.tmpl Wed Apr 27 21:55:46 2011 -0400 +++ b/mercurial/templates/gitweb/changelogentry.tmpl Thu Apr 28 17:02:39 2011 +0200 @@ -1,5 +1,5 @@
-{date|age}{desc|strip|firstline|escape|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag} +{date|date}{desc|strip|firstline|escape|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}