##// 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
50 50 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
51 51
52 52 <div id="wrapper">
53 <ul id="nodebgs" class="stripes2"></ul>
54 53 <canvas id="graph"></canvas>
55 <ul id="graphnodes">{nodes%graphentry}</ul>
54 <ul id="graphnodes" class="stripes2">{nodes%graphentry}</ul>
56 55 </div>
57 56
58 57 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
59 58 var data = {jsdata|json};
60 59 var graph = new Graph();
61 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 61 graph.render(data);
69 62 </script>
70 63
@@ -1,7 +1,9
1 1 <li data-node="{node|short}">
2 <div class="fg">
2 3 <span class="desc">
3 4 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a>
4 5 </span>
5 6 {alltags}
6 7 <div class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</div>
8 </div>
7 9 </li>
@@ -460,22 +460,19 canvas {
460 460 }
461 461
462 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 463 list-style: none inside none;
472 464 padding: 0;
473 465 margin: 0;
474 top: -0.7em;
475 466 }
476 467
477 ul#graphnodes li, ul#nodebgs li {
468 ul#graphnodes li {
478 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 478 ul#graphnodes li .info {
@@ -294,21 +294,14 Some tests for hgweb in an empty reposit
294 294 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
295 295
296 296 <div id="wrapper">
297 <ul id="nodebgs" class="stripes2"></ul>
298 297 <canvas id="graph"></canvas>
299 <ul id="graphnodes"></ul>
298 <ul id="graphnodes" class="stripes2"></ul>
300 299 </div>
301 300
302 301 <script type="text/javascript">
303 302 var data = [];
304 303 var graph = new Graph();
305 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 305 graph.render(data);
313 306 </script>
314 307
General Comments 0
You need to be logged in to leave comments. Login now