Mercurial > hg
comparison tests/test-hgweb-commands.t @ 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 | 62e10bf001a9 |
children | d2eff9d4db3f |
comparison
equal
deleted
inserted
replaced
35137:5cd6682b5a90 | 35138:e397f8585953 |
---|---|
1570 | 1570 |
1571 <div class="title"> </div> | 1571 <div class="title"> </div> |
1572 <table cellspacing="0"> | 1572 <table cellspacing="0"> |
1573 <tr><td>description</td><td>unknown</td></tr> | 1573 <tr><td>description</td><td>unknown</td></tr> |
1574 <tr><td>owner</td><td>Foo Bar <foo.bar@example.com></td></tr> | 1574 <tr><td>owner</td><td>Foo Bar <foo.bar@example.com></td></tr> |
1575 <tr><td>last change</td><td>Thu, 01 Jan 1970 00:00:00 +0000</td></tr> | 1575 <tr><td>last change</td><td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td></tr> |
1576 </table> | 1576 </table> |
1577 | 1577 |
1578 <div><a class="title" href="/shortlog?style=gitweb">changes</a></div> | 1578 <div><a class="title" href="/shortlog?style=gitweb">changes</a></div> |
1579 <table cellspacing="0"> | 1579 <table cellspacing="0"> |
1580 | 1580 |