monoblue: show relative age of bookmarks stable
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 13 Jul 2015 13:13:17 +0800
branchstable
changeset 25868 777235417457
parent 25867 a74e9806d17d
child 25869 a72e304df528
monoblue: show relative age of bookmarks In b24e5a708fad, age calculation was made dynamic (i.e. in javascript), but for some reason bookmarkentry template in monoblue/map got a wrong class. It resulted in /summary and /bookmarks pages always showing exact dates for bookmarks, no age calculation was performed. Let's fix this by using "age" class that is already used in branchentry and tagentry templates in the same map file. As usual, the exact date for such elements is still available in title attribute, so it shows in a tooltip on hover.
mercurial/templates/monoblue/map
--- a/mercurial/templates/monoblue/map	Wed Jul 22 10:19:17 2015 +0800
+++ b/mercurial/templates/monoblue/map	Mon Jul 13 13:13:17 2015 +0800
@@ -181,7 +181,7 @@
 bookmarks = bookmarks.tmpl
 bookmarkentry = '
   <tr class="parity{parity}">
-    <td class="nowrap date">{date|rfc822date}</td>
+    <td class="nowrap age">{date|rfc822date}</td>
     <td><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{bookmark|escape}</a></td>
     <td class="nowrap">
       <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |