2
<title>#repo|escape#: graph</title>
3
<link rel="alternate" type="application/atom+xml"
4
href="#url#atom-tags" title="Atom feed for #repo|escape#: tags">
5
<link rel="alternate" type="application/rss+xml"
6
href="#url#rss-tags" title="RSS feed for #repo|escape#: tags">
7
<!--[if IE]><script type="text/javascript" src="#staticurl#excanvas.js"></script><![endif]-->
12
<a href="#url#log{sessionvars%urlparameter}">changelog</a>
13
<a href="#url#shortlog{sessionvars%urlparameter}">shortlog</a>
14
<a href="#url#tags{sessionvars%urlparameter}">tags</a>
15
<a href="#url#file/#node|short#/{sessionvars%urlparameter}">files</a>
20
<form action="#url#log">
21
{sessionvars%hiddenformentry}
23
<label for="search1">search:</label>
24
<input name="rev" id="search1" type="text" size="30">
25
navigate: <small class="navigate">#changenav%navgraphentry#</small>
29
<noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
32
<ul id="nodebgs"></ul>
33
<canvas id="graph" width="224" height="#canvasheight#"></canvas>
34
<ul id="graphnodes"></ul>
37
<script type="text/javascript" src="#staticurl#graph.js"></script>
38
<script type="text/javascript">
39
<!-- hide script content
41
var data = {jsdata|json};
42
var graph = new Graph();
43
graph.scale({bg_height});
45
graph.edge = function(x0, y0, x1, y1, color) {
47
this.setColor(color, 0.0, 0.65);
49
this.ctx.moveTo(x0, y0);
50
this.ctx.lineTo(x1, y1);
55
var revlink = '<li style="_STYLE"><span class="desc">';
56
revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
57
revlink += '</span><span class="info">_DATE ago, by _USER</span></li>';
59
graph.vertex = function(x, y, color, parity, cur) {
62
color = this.setColor(color, 0.25, 0.75);
63
this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
66
var bg = '<li class="bg parity' + parity + '"></li>';
67
var left = (this.columns + 1) * this.bg_height;
68
var nstyle = 'padding-left: ' + left + 'px;';
69
var item = revlink.replace(/_STYLE/, nstyle);
70
item = item.replace(/_PARITY/, 'parity' + parity);
71
item = item.replace(/_NODEID/, cur[0]);
72
item = item.replace(/_NODEID/, cur[0]);
73
item = item.replace(/_DESC/, cur[3]);
74
item = item.replace(/_USER/, cur[4]);
75
item = item.replace(/_DATE/, cur[5]);
83
// stop hiding script -->
86
<form action="#url#log">
87
{sessionvars%hiddenformentry}
89
<label for="search1">search:</label>
90
<input name="rev" id="search1" type="text" size="30">
91
navigate: <small class="navigate">#changenav%navgraphentry#</small>