slitaz-dev-tools rev 34

slitaz-mercurial-style: Fixed graph. Thanks goes to mpm for this patch: http://www.selenic.com/hg/rev/b07bd417115b.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Mar 11 15:44:51 2011 +0000 (2011-03-11)
parents 557cb5fab3c5
children 74c291bfc277
files slitaz-mercurial-style/templates/slitaz/graph.tmpl
line diff
     1.1 --- a/slitaz-mercurial-style/templates/slitaz/graph.tmpl	Thu Mar 10 18:23:59 2011 +0100
     1.2 +++ b/slitaz-mercurial-style/templates/slitaz/graph.tmpl	Fri Mar 11 15:44:51 2011 +0000
     1.3 @@ -77,7 +77,7 @@
     1.4  var graph = new Graph();
     1.5  graph.scale({bg_height});
     1.6  
     1.7 -graph.edge = function(x0, y0, x1, y1, color) {
     1.8 +graph.edge = function(x0, y0, x1, y1, color) \{
     1.9  
    1.10  	this.setColor(color, 0.0, 0.65);
    1.11  	this.ctx.beginPath();
    1.12 @@ -91,7 +91,7 @@
    1.13  revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
    1.14  revlink += '</span>_TAGS<span class="info">_DATE ago, by _USER</span></li>';
    1.15  
    1.16 -graph.vertex = function(x, y, color, parity, cur) {
    1.17 +graph.vertex = function(x, y, color, parity, cur) \{
    1.18  
    1.19  	this.ctx.beginPath();
    1.20  	color = this.setColor(color, 0.25, 0.75);
    1.21 @@ -110,17 +110,17 @@
    1.22  	item = item.replace(/_DATE/, cur[5]);
    1.23  
    1.24  	var tagspan = '';
    1.25 -	if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
    1.26 +	if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) \{
    1.27  		tagspan = '<span class="logtags">';
    1.28  		if (cur[6][1]) {
    1.29  			tagspan += '<span class="branchhead" title="' + cur[6][0] + '">';
    1.30  			tagspan += cur[6][0] + '</span> ';
    1.31 -		} else if (!cur[6][1] && cur[6][0] != 'default') {
    1.32 +		} else if (!cur[6][1] && cur[6][0] != 'default') \{
    1.33  			tagspan += '<span class="branchname" title="' + cur[6][0] + '">';
    1.34  			tagspan += cur[6][0] + '</span> ';
    1.35  		}
    1.36 -		if (cur[7].length) {
    1.37 -			for (var t in cur[7]) {
    1.38 +		if (cur[7].length) \{
    1.39 +			for (var t in cur[7]) \{
    1.40  				var tag = cur[7][t];
    1.41  				tagspan += '<span class="tag">' + tag + '</span> ';
    1.42  			}