MercurialWebTheme

Changeset

28:4b0cb747b86f
2010-10-31 Paul Boddie raw files shortlog changelog graph Introduced support for the apparently modified pager variables in more recent versions of Mercurial. Some measures may be needed to permit the theme to work with older versions.
themes/mercurialweb/changelog.tmpl (file) themes/mercurialweb/graph.tmpl (file) themes/mercurialweb/map (file) themes/mercurialweb/shortlog.tmpl (file)
     1.1 --- a/themes/mercurialweb/changelog.tmpl	Sun Oct 31 17:18:29 2010 +0100
     1.2 +++ b/themes/mercurialweb/changelog.tmpl	Sun Oct 31 17:53:34 2010 +0100
     1.3 @@ -28,7 +28,7 @@
     1.4  
     1.5  <h3>Changelog</h3>
     1.6  
     1.7 -<div class="pager">{changenav%changelogpagerlink}</div>
     1.8 +<div class="pager">{changenav%changelogpagerentry}</div>
     1.9  
    1.10  <table>
    1.11    <tbody>
    1.12 @@ -36,6 +36,6 @@
    1.13    </tbody>
    1.14  </table>
    1.15  
    1.16 -<div class="pager">{changenav%changelogpagerlink}</div>
    1.17 +<div class="pager">{changenav%changelogpagerentry}</div>
    1.18  
    1.19  {footer}
     2.1 --- a/themes/mercurialweb/graph.tmpl	Sun Oct 31 17:18:29 2010 +0100
     2.2 +++ b/themes/mercurialweb/graph.tmpl	Sun Oct 31 17:53:34 2010 +0100
     2.3 @@ -29,7 +29,7 @@
     2.4  
     2.5  <h3>Graph</h3>
     2.6  
     2.7 -<div class="pager">{changenav%graphpagerlink}</div>
     2.8 +<div class="pager">{changenav%graphpagerentry}</div>
     2.9  
    2.10  <div class="graph" style="padding-left:{canvaswidth}px;">
    2.11  <table class="graph" style="height:{truecanvasheight}px;">
    2.12 @@ -45,6 +45,6 @@
    2.13  </svg>
    2.14  </div>
    2.15  
    2.16 -<div class="pager">{changenav%graphpagerlink}</div>
    2.17 +<div class="pager">{changenav%graphpagerentry}</div>
    2.18  
    2.19  {footer}
     3.1 --- a/themes/mercurialweb/map	Sun Oct 31 17:18:29 2010 +0100
     3.2 +++ b/themes/mercurialweb/map	Sun Oct 31 17:53:34 2010 +0100
     3.3 @@ -33,6 +33,10 @@
     3.4  graphlabel = graphlabel.tmpl
     3.5  graphnode = graphnode.tmpl
     3.6  
     3.7 +changelogpagerentry = '{before%changelogpagerlink}{after%changelogpagerlink}'
     3.8 +graphpagerentry = '{before%graphpagerlink}{after%graphpagerlink}'
     3.9 +shortlogpagerentry = '{before%shortlogpagerlink}{after%shortlogpagerlink}'
    3.10 +
    3.11  archiveentry = '<a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a> '
    3.12  branchlabel = '<span class="branch">{name}</span> '
    3.13  branchtag = '<span class="branch"><a href="{url}rev/{node|short}{sessionvars%urlparameter}#{node|short}">{name}</a></span> '
     4.1 --- a/themes/mercurialweb/shortlog.tmpl	Sun Oct 31 17:18:29 2010 +0100
     4.2 +++ b/themes/mercurialweb/shortlog.tmpl	Sun Oct 31 17:53:34 2010 +0100
     4.3 @@ -28,7 +28,7 @@
     4.4  
     4.5  <h3>Shortlog</h3>
     4.6  
     4.7 -<div class="pager">{changenav%shortlogpagerlink}</div>
     4.8 +<div class="pager">{changenav%shortlogpagerentry}</div>
     4.9  
    4.10  <table>
    4.11    <tbody>
    4.12 @@ -36,6 +36,6 @@
    4.13    </tbody>
    4.14  </table>
    4.15  
    4.16 -<div class="pager">{changenav%shortlogpagerlink}</div>
    4.17 +<div class="pager">{changenav%shortlogpagerentry}</div>
    4.18  
    4.19  {footer}