Mercurial > hg-stable
diff mercurial/templates/spartan/map @ 29525:d8f2c718deec
hgweb: add a link on node id in annotate hover-box
The link pointing the annotate view at this revision, just like the one in the
left-column but accessible from anywhere.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Tue, 12 Jul 2016 15:09:07 +0200 |
parents | 19f96077c61b |
children | 1cc5a918b7d8 |
line wrap: on
line diff
--- a/mercurial/templates/spartan/map Tue Jul 12 15:07:37 2016 +0200 +++ b/mercurial/templates/spartan/map Tue Jul 12 15:09:07 2016 +0200 @@ -61,7 +61,11 @@ {rev} </a>')} <div class="annotate-info"> - <div>{node|short}: {desc|escape|firstline}</div> + <div> + <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"> + {node|short}</a> + {desc|escape|firstline} + </div> <div><em>{author|obfuscate}</em></div> <div>parents: {parents%annotateparent}</div> <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a>