Patchwork [09,of,11] hgweb: make stripes in graph with CSS

login
register
mail settings
Submitter Alexander Plavin
Date July 17, 2013, 7:26 p.m.
Message ID <b2edfaa57c375e8cf49b.1374089182@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1921/
State Accepted
Commit ece3b329ad25f4888fec6cc6a5be7fe4a1133698
Delegated to: Kevin Bullock
Headers show

Comments

Alexander Plavin - July 17, 2013, 7:26 p.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1373724154 -14400
#      Sat Jul 13 18:02:34 2013 +0400
# Node ID b2edfaa57c375e8cf49bc356060d53233ac7a202
# Parent  139e36daeef68b780a8bfc9657eea9e16c42341e
hgweb: make stripes in graph with CSS

Patch

diff -r 139e36daeef6 -r b2edfaa57c37 mercurial/templates/paper/graph.tmpl
--- 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;';
 
diff -r 139e36daeef6 -r b2edfaa57c37 tests/test-hgweb-empty.t
--- 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;';