Show More
@@ -50,21 +50,14 | |||||
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 | |||||
1 | <li data-node="{node|short}"> |
|
1 | <li data-node="{node|short}"> | |
|
2 | <div class="fg"> | |||
2 | <span class="desc"> |
|
3 | <span class="desc"> | |
3 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a> |
|
4 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a> | |
4 | </span> |
|
5 | </span> | |
5 | {alltags} |
|
6 | {alltags} | |
6 | <div class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</div> |
|
7 | <div class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</div> | |
|
8 | </div> | |||
7 | </li> |
|
9 | </li> |
@@ -460,22 +460,19 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 |
|
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 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 |
General Comments 0
You need to be logged in to leave comments.
Login now