--- a/templates/kit/graph.tmpl Wed Feb 07 11:59:16 2018 +0800
+++ b/templates/kit/graph.tmpl Wed Feb 07 12:01:22 2018 +0800
<title>Graph at {symrev|escape} · {repo|escape}</title>
<link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}">
<link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}">
- <!--[if IE]><script type="text/javascript" src="{staticurl|urlescape}excanvas.js"></script><![endif]-->
<div class="uk-position-relative" data-scroll-target>
- <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas>
- <ul id="graphnodes"></ul>
+ <canvas id="graph"></canvas>
+ <ul id="graphnodes" class="uk-list">{nodes%graphentry}</ul>
<ul class="uk-pagination">
-<!-- hide script content
var data = {jsdata|json};
graph.scale({bg_height});
-graph.vertex = function(x, y, color, parity, cur) \{
- color = this.setColor(color, 0.25, 0.75);
- this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
- var bg = '<li class="bg parity' + parity + '"></li>';
- var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size;
- var nstyle = 'padding-left: ' + left + 'px;';
- if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) \{
- tagspan += '<span class="uk-badge kit-badge-branch-head" title="' + cur[6][0] + '">';
- tagspan += cur[6][0] + '</span> ';
- } else if (!cur[6][1] && cur[6][0] != 'default') \{
- tagspan += '<span class="uk-badge kit-badge-branch" title="' + cur[6][0] + '">';
- tagspan += cur[6][0] + '</span> ';
- for (var t in cur[7]) \{
- tagspan += '<span class="uk-badge kit-badge-tag">' + tag + '</span> ';
- for (var t in cur[8]) \{
- var bookmark = cur[8][t];
- tagspan += '<span class="uk-badge kit-badge-bookmark">' + bookmark + '</span> ';
- var item = '<li style="' + nstyle + '"><span class="desc">';
- item += '<a href="{url|urlescape}rev/' + cur[0] + '{sessionvars%urlparameter}" title="' + cur[0] + '">' + cur[3] + '</a>';
- item += '</span> ' + tagspan;
- item += '<span class="info">' + cur[5] + ', by ' + cur[4] + '</span></li>';
-// stop hiding script -->
<script type="text/javascript">
- '{url|urlescape}graph/{rev}?revcount=%next%&style={style}',
- function (htmlText, previousVal) \{ return previousVal + 60; },
+ '{url|urlescape}graph/%next%{graphvars%urlparameter}',
+ '{nextentry%"{node}"}', <!-- NEXTHASH
+ var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
+ return m ? m[1] : null;
'<div class="%class%" style="text-align: center;">%text%</div>',