comparison mercurial/templates/paper/fileannotate.tmpl @ 25617:63be46407a50

hgweb: link to revision by node hash in paper & coal Unlike other styles, paper and coal had only one link to current revision: in the sidebar. Since those links now use symbolic revisions after 3bb6f5f478a7, it's nice to have a link that allows going from /rev/tip to /rev/<tip hash>, for instance. Let's make the node hash in the page header that new link.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 18 Jun 2015 17:06:18 +0800
parents 3bb6f5f478a7
children 011122b3b1c4
comparison
equal deleted inserted replaced
25616:e0073dcec588 25617:63be46407a50
35 </ul> 35 </ul>
36 </div> 36 </div>
37 37
38 <div class="main"> 38 <div class="main">
39 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2> 39 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
40 <h3>annotate {file|escape} @ {rev}:{node|short} {branch%changelogbranchname}{tags%changelogtag}{bookmarks%changelogtag}</h3> 40 <h3>
41 annotate {file|escape} @ {rev}:<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>
42 {branch%changelogbranchname}{tags%changelogtag}{bookmarks%changelogtag}
43 </h3>
41 44
42 <form class="search" action="{url|urlescape}log"> 45 <form class="search" action="{url|urlescape}log">
43 {sessionvars%hiddenformentry} 46 {sessionvars%hiddenformentry}
44 <p><input name="rev" id="search1" type="text" size="30" /></p> 47 <p><input name="rev" id="search1" type="text" size="30" /></p>
45 <div id="hint">{searchhint}</div> 48 <div id="hint">{searchhint}</div>