spartan/graph.tmpl
changeset 10 bd0fd9039fd9
parent 6 8e09cd171122
     1.1 --- a/spartan/graph.tmpl	Thu Apr 07 09:20:02 2011 -0700
     1.2 +++ b/spartan/graph.tmpl	Mon Apr 11 15:51:22 2011 -0700
     1.3 @@ -14,6 +14,7 @@
     1.4  <a href="{url}tags{sessionvars%urlparameter}">tags</a>
     1.5  <a href="{url}branches{sessionvars%urlparameter}">branches</a>
     1.6  <a href="{url}file/{node|short}/{sessionvars%urlparameter}">files</a>
     1.7 +<a href="{url}help{sessionvars%urlparameter}">help</a>
     1.8  </div>
     1.9  
    1.10  <h2>graph</h2>
    1.11 @@ -31,7 +32,7 @@
    1.12  
    1.13  <div id="wrapper">
    1.14  <ul id="nodebgs"></ul>
    1.15 -<canvas id="graph" width="224" height="{canvasheight}"></canvas>
    1.16 +<canvas id="graph" width="480" height="{canvasheight}"></canvas>
    1.17  <ul id="graphnodes"></ul>
    1.18  </div>
    1.19  
    1.20 @@ -43,7 +44,7 @@
    1.21  var graph = new Graph();
    1.22  graph.scale({bg_height});
    1.23  
    1.24 -graph.edge = function(x0, y0, x1, y1, color) {
    1.25 +graph.edge = function(x0, y0, x1, y1, color) \{
    1.26  	
    1.27  	this.setColor(color, 0.0, 0.65);
    1.28  	this.ctx.beginPath();
    1.29 @@ -57,7 +58,7 @@
    1.30  revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
    1.31  revlink += '</span><span class="info">_DATE, by _USER</span></li>';
    1.32  
    1.33 -graph.vertex = function(x, y, color, parity, cur) {
    1.34 +graph.vertex = function(x, y, color, parity, cur) \{
    1.35  	
    1.36  	this.ctx.beginPath();
    1.37  	color = this.setColor(color, 0.25, 0.75);