hgweb: recreate old DOM structure for css in monoblue style stable
authorAnton Shestakov <engored@ya.ru>
Thu, 12 Feb 2015 10:38:33 +0800
branchstable
changeset 24109 31bedb15e2e5
parent 24108 d65ecb814fc0
child 24110 756c5c8331b0
hgweb: recreate old DOM structure for css in monoblue style There's a "p.changeset-age span" css block in style-monoblue.css with quite a bit of rules, including position. They were all unused, since there weren't matching span element inside the p.changeset-age. The span was removed in b24e5a708fad (as it seemed meaningless at the time?) and since then relative changeset age text looked weird and broken. "age" class is used for calculating relative changeset age in javascript: all content of such element is replaced with human-friendly text (e.g. "yesterday"). So the new span gets the age class.
mercurial/templates/monoblue/changeset.tmpl
mercurial/templates/monoblue/fileannotate.tmpl
mercurial/templates/monoblue/filerevision.tmpl
--- a/mercurial/templates/monoblue/changeset.tmpl	Wed Feb 11 19:57:07 2015 +0900
+++ b/mercurial/templates/monoblue/changeset.tmpl	Thu Feb 12 10:38:33 2015 +0800
@@ -39,7 +39,7 @@
     <h2 class="no-link no-border">changeset</h2>
 
     <h3 class="changeset"><a href="{url|urlescape}raw-rev/{node|short}">{desc|strip|escape|firstline|nonempty} <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span></a></h3>
-    <p class="changeset-age age">{date|rfc822date}</p>
+    <p class="changeset-age"><span class="age">{date|rfc822date}</span></p>
 
     <dl class="overview">
         <dt>author</dt>
--- a/mercurial/templates/monoblue/fileannotate.tmpl	Wed Feb 11 19:57:07 2015 +0900
+++ b/mercurial/templates/monoblue/fileannotate.tmpl	Thu Feb 12 10:38:33 2015 +0800
@@ -41,7 +41,7 @@
 
     <h2 class="no-link no-border">{file|escape}@{node|short} (annotated)</h2>
     <h3 class="changeset">{file|escape}</h3>
-    <p class="changeset-age age">{date|rfc822date}</p>
+    <p class="changeset-age"><span class="age">{date|rfc822date}</span></p>
 
     <dl class="overview">
         <dt>author</dt>
--- a/mercurial/templates/monoblue/filerevision.tmpl	Wed Feb 11 19:57:07 2015 +0900
+++ b/mercurial/templates/monoblue/filerevision.tmpl	Thu Feb 12 10:38:33 2015 +0800
@@ -41,7 +41,7 @@
 
     <h2 class="no-link no-border">{file|escape}@{node|short}</h2>
     <h3 class="changeset">{file|escape}</h3>
-    <p class="changeset-age age">{date|rfc822date}</p>
+    <p class="changeset-age"><span class="age">{date|rfc822date}</span></p>
 
     <dl class="overview">
         <dt>author</dt>