Mercurial > hg
comparison mercurial/templates/monoblue/changeset.tmpl @ 24109:31bedb15e2e5 stable
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.
author | Anton Shestakov <engored@ya.ru> |
---|---|
date | Thu, 12 Feb 2015 10:38:33 +0800 |
parents | 8f7e839aaa70 |
children | 0cdcbc477cac |
comparison
equal
deleted
inserted
replaced
24108:d65ecb814fc0 | 24109:31bedb15e2e5 |
---|---|
37 </ul> | 37 </ul> |
38 | 38 |
39 <h2 class="no-link no-border">changeset</h2> | 39 <h2 class="no-link no-border">changeset</h2> |
40 | 40 |
41 <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> | 41 <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> |
42 <p class="changeset-age age">{date|rfc822date}</p> | 42 <p class="changeset-age"><span class="age">{date|rfc822date}</span></p> |
43 | 43 |
44 <dl class="overview"> | 44 <dl class="overview"> |
45 <dt>author</dt> | 45 <dt>author</dt> |
46 <dd>{author|obfuscate}</dd> | 46 <dd>{author|obfuscate}</dd> |
47 <dt>date</dt> | 47 <dt>date</dt> |