##// END OF EJS Templates
paper: make actual changeset entries have backgrounds on /graph...
av6 -
r35547:5afe0ca5 default
parent child Browse files
Show More
@@ -50,21 +50,14 b''
50 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
50 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
51
51
52 <div id="wrapper">
52 <div id="wrapper">
53 <ul id="nodebgs" class="stripes2"></ul>
54 <canvas id="graph"></canvas>
53 <canvas id="graph"></canvas>
55 <ul id="graphnodes">{nodes%graphentry}</ul>
54 <ul id="graphnodes" class="stripes2">{nodes%graphentry}</ul>
56 </div>
55 </div>
57
56
58 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
57 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
59 var data = {jsdata|json};
58 var data = {jsdata|json};
60 var graph = new Graph();
59 var graph = new Graph();
61 graph.scale({bg_height});
60 graph.scale({bg_height});
62
63 graph.vertex = function(x, y, radius, color, parity, cur) \{
64 Graph.prototype.vertex.apply(this, arguments);
65 return ['<li class="bg"></li>', ''];
66 }
67
68 graph.render(data);
61 graph.render(data);
69 </script>
62 </script>
70
63
@@ -1,7 +1,9 b''
1 <li data-node="{node|short}">
1 <li data-node="{node|short}">
2 <span class="desc">
2 <div class="fg">
3 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a>
3 <span class="desc">
4 </span>
4 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a>
5 {alltags}
5 </span>
6 <div class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</div>
6 {alltags}
7 <div class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</div>
8 </div>
7 </li>
9 </li>
@@ -460,22 +460,19 b' canvas {'
460 }
460 }
461
461
462 ul#graphnodes {
462 ul#graphnodes {
463 position: absolute;
464 z-index: 10;
465 top: -1.0em;
466 list-style: none inside none;
467 padding: 0;
468 }
469
470 ul#nodebgs {
471 list-style: none inside none;
463 list-style: none inside none;
472 padding: 0;
464 padding: 0;
473 margin: 0;
465 margin: 0;
474 top: -0.7em;
475 }
466 }
476
467
477 ul#graphnodes li, ul#nodebgs li {
468 ul#graphnodes li {
478 height: 39px;
469 height: 39px;
470 overflow: visible;
471 }
472
473 ul#graphnodes li .fg {
474 position: absolute;
475 z-index: 10;
479 }
476 }
480
477
481 ul#graphnodes li .info {
478 ul#graphnodes li .info {
@@ -294,21 +294,14 b' Some tests for hgweb in an empty reposit'
294 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
294 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
295
295
296 <div id="wrapper">
296 <div id="wrapper">
297 <ul id="nodebgs" class="stripes2"></ul>
298 <canvas id="graph"></canvas>
297 <canvas id="graph"></canvas>
299 <ul id="graphnodes"></ul>
298 <ul id="graphnodes" class="stripes2"></ul>
300 </div>
299 </div>
301
300
302 <script type="text/javascript">
301 <script type="text/javascript">
303 var data = [];
302 var data = [];
304 var graph = new Graph();
303 var graph = new Graph();
305 graph.scale(39);
304 graph.scale(39);
306
307 graph.vertex = function(x, y, radius, color, parity, cur) {
308 Graph.prototype.vertex.apply(this, arguments);
309 return ['<li class="bg"></li>', ''];
310 }
311
312 graph.render(data);
305 graph.render(data);
313 </script>
306 </script>
314
307
@@ -59,9 +59,9 b' Set up the repo'
59 <a href="/graph/tip?revcount=30&style=paper">less</a>
59 <a href="/graph/tip?revcount=30&style=paper">less</a>
60 <a href="/graph/tip?revcount=120&style=paper">more</a>
60 <a href="/graph/tip?revcount=120&style=paper">more</a>
61 | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
61 | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
62 <a href="/rev/9d8c40cba617?style=paper">third</a>
62 <a href="/rev/9d8c40cba617?style=paper">third</a>
63 <a href="/rev/a7c1559b7bba?style=paper">second</a>
63 <a href="/rev/a7c1559b7bba?style=paper">second</a>
64 <a href="/rev/43c799df6e75?style=paper">first</a>
64 <a href="/rev/43c799df6e75?style=paper">first</a>
65 <a href="/graph/tip?revcount=30&style=paper">less</a>
65 <a href="/graph/tip?revcount=30&style=paper">less</a>
66 <a href="/graph/tip?revcount=120&style=paper">more</a>
66 <a href="/graph/tip?revcount=120&style=paper">more</a>
67 | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
67 | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
@@ -126,8 +126,8 b' Set up the repo'
126 <a href="/graph/xyzzy?revcount=30&style=paper">less</a>
126 <a href="/graph/xyzzy?revcount=30&style=paper">less</a>
127 <a href="/graph/xyzzy?revcount=120&style=paper">more</a>
127 <a href="/graph/xyzzy?revcount=120&style=paper">more</a>
128 | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
128 | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
129 <a href="/rev/a7c1559b7bba?style=paper">second</a>
129 <a href="/rev/a7c1559b7bba?style=paper">second</a>
130 <a href="/rev/43c799df6e75?style=paper">first</a>
130 <a href="/rev/43c799df6e75?style=paper">first</a>
131 <a href="/graph/xyzzy?revcount=30&style=paper">less</a>
131 <a href="/graph/xyzzy?revcount=30&style=paper">less</a>
132 <a href="/graph/xyzzy?revcount=120&style=paper">more</a>
132 <a href="/graph/xyzzy?revcount=120&style=paper">more</a>
133 | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
133 | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a>
@@ -259,9 +259,9 b' Set up the repo'
259 <a href="/graph/tip?revcount=30&style=coal">less</a>
259 <a href="/graph/tip?revcount=30&style=coal">less</a>
260 <a href="/graph/tip?revcount=120&style=coal">more</a>
260 <a href="/graph/tip?revcount=120&style=coal">more</a>
261 | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
261 | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
262 <a href="/rev/9d8c40cba617?style=coal">third</a>
262 <a href="/rev/9d8c40cba617?style=coal">third</a>
263 <a href="/rev/a7c1559b7bba?style=coal">second</a>
263 <a href="/rev/a7c1559b7bba?style=coal">second</a>
264 <a href="/rev/43c799df6e75?style=coal">first</a>
264 <a href="/rev/43c799df6e75?style=coal">first</a>
265 <a href="/graph/tip?revcount=30&style=coal">less</a>
265 <a href="/graph/tip?revcount=30&style=coal">less</a>
266 <a href="/graph/tip?revcount=120&style=coal">more</a>
266 <a href="/graph/tip?revcount=120&style=coal">more</a>
267 | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
267 | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
@@ -326,8 +326,8 b' Set up the repo'
326 <a href="/graph/xyzzy?revcount=30&style=coal">less</a>
326 <a href="/graph/xyzzy?revcount=30&style=coal">less</a>
327 <a href="/graph/xyzzy?revcount=120&style=coal">more</a>
327 <a href="/graph/xyzzy?revcount=120&style=coal">more</a>
328 | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
328 | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
329 <a href="/rev/a7c1559b7bba?style=coal">second</a>
329 <a href="/rev/a7c1559b7bba?style=coal">second</a>
330 <a href="/rev/43c799df6e75?style=coal">first</a>
330 <a href="/rev/43c799df6e75?style=coal">first</a>
331 <a href="/graph/xyzzy?revcount=30&style=coal">less</a>
331 <a href="/graph/xyzzy?revcount=30&style=coal">less</a>
332 <a href="/graph/xyzzy?revcount=120&style=coal">more</a>
332 <a href="/graph/xyzzy?revcount=120&style=coal">more</a>
333 | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
333 | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>
General Comments 0
You need to be logged in to leave comments. Login now