MercurialWebTheme

Changeset

41:a5f66f9fa9eb
2011-11-12 Paul Boddie raw files shortlog changelog graph Fixed the file annotation navigation to link to the file's annotation for each given changeset instead of the changeset itself.
themes/mercurialweb/fileannotate.tmpl (file) themes/mercurialweb/map (file)
     1.1 --- a/themes/mercurialweb/fileannotate.tmpl	Mon Oct 10 22:48:30 2011 +0200
     1.2 +++ b/themes/mercurialweb/fileannotate.tmpl	Sat Nov 12 00:25:08 2011 +0100
     1.3 @@ -30,9 +30,9 @@
     1.4  
     1.5  <h3>Annotated {file|escape}</h3>
     1.6  
     1.7 -<div class="changesetlinks"><div class="changesetchildlinks"></div>{child%changesetlink}</div>
     1.8 +<div class="changesetlinks"><div class="changesetchildlinks"></div>{child%annotatelink}</div>
     1.9  <div class="changeset">{rev}:{node|short}</div>
    1.10 -<div class="changesetlinks"><div class="changesetparentlinks"></div>{parent%changesetlink}</div>
    1.11 +<div class="changesetlinks"><div class="changesetparentlinks"></div>{parent%annotatelink}</div>
    1.12  
    1.13  <table>
    1.14    <tbody>
     2.1 --- a/themes/mercurialweb/map	Mon Oct 10 22:48:30 2011 +0200
     2.2 +++ b/themes/mercurialweb/map	Sat Nov 12 00:25:08 2011 +0100
     2.3 @@ -37,6 +37,7 @@
     2.4  graphpagerentry = '{before%graphpagerlink}{after%graphpagerlink}'
     2.5  shortlogpagerentry = '{before%shortlogpagerlink}{after%shortlogpagerlink}'
     2.6  
     2.7 +annotatelink = '<a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}:{node|short}</a> '
     2.8  archiveentry = '<a href="{url}archive/{node|short}{extension|urlescape}">{type|xmlescape}</a> '
     2.9  branchlabel = '<span class="branch">{name}</span> '
    2.10  branchtag = '<span class="branch"><a href="{url}rev/{node|short}{sessionvars%urlparameter}#{node|short}">{name}</a></span> '