hgweb: make stripes in graph with CSS
authorAlexander Plavin <me@aplavin.ru>
Sat, 13 Jul 2013 18:02:34 +0400
changeset 19453 ece3b329ad25
parent 19452 6f5556454edd
child 19454 f4a3b50a30bd
hgweb: make stripes in graph with CSS
mercurial/templates/paper/graph.tmpl
tests/test-hgweb-empty.t
--- a/mercurial/templates/paper/graph.tmpl	Sat Jul 13 17:59:00 2013 +0400
+++ b/mercurial/templates/paper/graph.tmpl	Sat Jul 13 18:02:34 2013 +0400
@@ -56,7 +56,7 @@
 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
 
 <div id="wrapper">
-<ul id="nodebgs"></ul>
+<ul id="nodebgs" class="stripes2"></ul>
 <canvas id="graph" width="480" height="{canvasheight}"></canvas>
 <ul id="graphnodes"></ul>
 </div>
@@ -75,7 +75,7 @@
 	this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
 	this.ctx.fill();
 	
-	var bg = '<li class="bg parity' + parity + '"></li>';
+	var bg = '<li class="bg"></li>';
 	var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size;
 	var nstyle = 'padding-left: ' + left + 'px;';
 
--- a/tests/test-hgweb-empty.t	Sat Jul 13 17:59:00 2013 +0400
+++ b/tests/test-hgweb-empty.t	Sat Jul 13 18:02:34 2013 +0400
@@ -262,7 +262,7 @@
   <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
   
   <div id="wrapper">
-  <ul id="nodebgs"></ul>
+  <ul id="nodebgs" class="stripes2"></ul>
   <canvas id="graph" width="480" height="12"></canvas>
   <ul id="graphnodes"></ul>
   </div>
@@ -281,7 +281,7 @@
   	this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
   	this.ctx.fill();
   	
-  	var bg = '<li class="bg parity' + parity + '"></li>';
+  	var bg = '<li class="bg"></li>';
   	var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size;
   	var nstyle = 'padding-left: ' + left + 'px;';