# HG changeset patch # User Benoit Allard # Date 2011-04-28 15:02:39 # 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 --git a/mercurial/templates/coal/header.tmpl b/mercurial/templates/coal/header.tmpl --- a/mercurial/templates/coal/header.tmpl +++ b/mercurial/templates/coal/header.tmpl @@ -4,3 +4,4 @@ + diff --git a/mercurial/templates/coal/map b/mercurial/templates/coal/map --- a/mercurial/templates/coal/map +++ b/mercurial/templates/coal/map @@ -197,7 +197,7 @@ indexentry = ' {name|escape} {description} {contact|obfuscate} - {lastchange|age} + {lastchange|date} {archives%indexarchiveentry} \n' indexarchiveentry = ' ↓{type|escape}' diff --git a/mercurial/templates/gitweb/changelogentry.tmpl b/mercurial/templates/gitweb/changelogentry.tmpl --- a/mercurial/templates/gitweb/changelogentry.tmpl +++ b/mercurial/templates/gitweb/changelogentry.tmpl @@ -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}