MercurialWebTheme

themes/mercurialweb/graph.tmpl

56:38afdf6585ee
2012-05-20 Paul Boddie Changed the name of the variable providing node data. Added a new version of the patch to hgweb.
     1 {header}     2 <title>{repo|escape} (graph)</title>     3 </head>     4      5 <body>     6      7 <div id="header">     8   <div id="logo"><a href="{logourl}"><img src="{staticurl}mercurial-logo.png" alt="Mercurial logo" /></a></div>     9   <div class="controls">    10     <ul id="navibar">    11     <li><a href="{url}summary{sessionvars%urlparameter}">Summary</a></li    12     ><li><a href="{url}shortlog{sessionvars%urlparameter}">Shortlog</a></li    13     ><li><a href="{url}changelog{sessionvars%urlparameter}">Changelog</a></li    14     ><li class="current"><span>Graph</span></li    15     ><li><a href="{url}tags{sessionvars%urlparameter}">Tags</a></li    16     ><li><a href="{url}bookmarks{sessionvars%urlparameter}">Bookmarks</a></li    17     ><li><a href="{url}branches{sessionvars%urlparameter}">Branches</a></li    18     ><li><a href="{url}file/{node|short}{sessionvars%urlparameter}">Files</a></li    19     ><li><a href="{url}help{sessionvars%urlparameter}">Help</a></li>    20     </ul>    21   </div>    22   <div id="pageline"></div>    23   <form id="searchform" action="{url}log"><span class="container">    24     <span class="hint">Search</span>&#160;<input name="rev" id="searchinput" type="text" size="20" />    25     </span>    26     {sessionvars%hiddenformentry}    27   </form>    28 </div>    29     30 <h2>{repo|escape}</h2>    31     32 <h3>Graph</h3>    33     34 <div class="pager">{changenav%graphpagerentry}</div>    35     36 <div class="graph" style="padding-left:{canvaswidth}px;">    37 <table class="graph" style="height:{truecanvasheight}px;">    38   <tbody>    39 {nodes%graphlabel}    40   </tbody>    41 </table>    42 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"    43  style="width:{canvaswidth}px; height:{truecanvasheight}px; position:absolute; top:0; left:0; z-index:-1;">    44 <g transform="scale({bg_height}) translate(0.5 0.5)">    45 {nodes%graphnode}    46 </g>    47 </svg>    48 </div>    49     50 <div class="pager">{changenav%graphpagerentry}</div>    51     52 {footer}