comparison mercurial/templates/monoblue/map @ 25868:777235417457 stable

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.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 13 Jul 2015 13:13:17 +0800
parents 0cdcbc477cac
children 8d49d4899b0f
comparison
equal deleted inserted replaced
25867:a74e9806d17d 25868:777235417457
179 </td> 179 </td>
180 </tr>' 180 </tr>'
181 bookmarks = bookmarks.tmpl 181 bookmarks = bookmarks.tmpl
182 bookmarkentry = ' 182 bookmarkentry = '
183 <tr class="parity{parity}"> 183 <tr class="parity{parity}">
184 <td class="nowrap date">{date|rfc822date}</td> 184 <td class="nowrap age">{date|rfc822date}</td>
185 <td><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{bookmark|escape}</a></td> 185 <td><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{bookmark|escape}</a></td>
186 <td class="nowrap"> 186 <td class="nowrap">
187 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | 187 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
188 <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> | 188 <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> |
189 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> 189 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>