templates/sjl/graph.tmpl @ f402fd0f036b

Finish (mostly) the reskin
author Steve Losh <steve@stevelosh.com>
date Wed, 15 Jan 2020 20:15:24 -0500
parents b2b88bc58ef9
children (none)
{header}
<title>{repo|escape}: revision graph</title>
</head>
<body>


<div class="main">
{navigation}
{searchform}

<h1>Graph</h1>

<div class="navigate">
<a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
<a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a>
| at revision {rev}: {changenav%navgraph}
</div>

<noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>

<div id="wrapper">
<canvas id="graph"></canvas>
<ul id="graphnodes" class="stripes2">{nodes%graphentry}</ul>
</div>

<script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
var data = {jsdata|json};
var graph = new Graph();
graph.scale({bg_height});
graph.render(data);
</script>

<div class="navigate">
<a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
<a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a>
| at revision {rev}: {changenav%navgraph}
</div>

<script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
    ajaxScrollInit(
            '{url|urlescape}graph/%next%{graphvars%urlparameter}',
            '{nextentry%"{node}"}', <!-- NEXTHASH
            function (htmlText) \{
                var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
                return m ? m[1] : null;
            },
            '#wrapper',
            '<div class="%class%" style="text-align: center;">%text%</div>',
            'graph'
    );
</script>

</div>

{footer}