Mercurial > hg
comparison mercurial/templates/monoblue/fileannotate.tmpl @ 25604:0cdcbc477cac
hgweb: don't dereference symbolic revision in monoblue style
Let's make monoblue templates use symbolic revision in navigation links.
The majority of links (log, filelog, annotate, etc) still use node hashes.
Some pages don't have permanent links to current node hash (so it's not very
easy to go from /rev/tip to /rev/<tip hash>), this will be addressed in future
patches.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 16 Jun 2015 13:59:49 +0800 |
parents | 31bedb15e2e5 |
children | 264e88901c44 |
comparison
equal
deleted
inserted
replaced
25603:1cac419ab831 | 25604:0cdcbc477cac |
---|---|
19 | 19 |
20 <ul class="page-nav"> | 20 <ul class="page-nav"> |
21 <li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li> | 21 <li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li> |
22 <li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a></li> | 22 <li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a></li> |
23 <li><a href="{url|urlescape}log{sessionvars%urlparameter}">changelog</a></li> | 23 <li><a href="{url|urlescape}log{sessionvars%urlparameter}">changelog</a></li> |
24 <li><a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">graph</a></li> | 24 <li><a href="{url|urlescape}graph/{symrev}{sessionvars%urlparameter}">graph</a></li> |
25 <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li> | 25 <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li> |
26 <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> | 26 <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> |
27 <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li> | 27 <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li> |
28 <li><a href="{url|urlescape}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a></li> | 28 <li><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">files</a></li> |
29 <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li> | 29 <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li> |
30 </ul> | 30 </ul> |
31 </div> | 31 </div> |
32 | 32 |
33 <ul class="submenu"> | 33 <ul class="submenu"> |
34 <li><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a></li> | 34 <li><a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">file</a></li> |
35 <li><a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a></li> | 35 <li><a href="{url|urlescape}log/{symrev}/{file|urlescape}{sessionvars%urlparameter}">revisions</a></li> |
36 <li class="current">annotate</li> | 36 <li class="current">annotate</li> |
37 <li><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a></li> | 37 <li><a href="{url|urlescape}diff/{symrev}/{file|urlescape}{sessionvars%urlparameter}">diff</a></li> |
38 <li><a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a></li> | 38 <li><a href="{url|urlescape}comparison/{symrev}/{file|urlescape}{sessionvars%urlparameter}">comparison</a></li> |
39 <li><a href="{url|urlescape}raw-annotate/{node|short}/{file|urlescape}">raw</a></li> | 39 <li><a href="{url|urlescape}raw-annotate/{symrev}/{file|urlescape}">raw</a></li> |
40 </ul> | 40 </ul> |
41 | 41 |
42 <h2 class="no-link no-border">{file|escape}@{node|short} (annotated)</h2> | 42 <h2 class="no-link no-border">{file|escape}@{node|short} (annotated)</h2> |
43 <h3 class="changeset">{file|escape}</h3> | 43 <h3 class="changeset">{file|escape}</h3> |
44 <p class="changeset-age"><span class="age">{date|rfc822date}</span></p> | 44 <p class="changeset-age"><span class="age">{date|rfc822date}</span></p> |