Show More
@@ -50,21 +50,14 b'' | |||
|
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 b'' | |||
|
1 | 1 | <li data-node="{node|short}"> |
|
2 |
< |
|
|
3 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a> | |
|
4 | </span> | |
|
5 | {alltags} | |
|
6 | <div class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</div> | |
|
2 | <div class="fg"> | |
|
3 | <span class="desc"> | |
|
4 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a> | |
|
5 | </span> | |
|
6 | {alltags} | |
|
7 | <div class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</div> | |
|
8 | </div> | |
|
7 | 9 | </li> |
@@ -460,22 +460,19 b' 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 |
|
|
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 b' 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 |
@@ -59,9 +59,9 b' Set up the repo' | |||
|
59 | 59 | <a href="/graph/tip?revcount=30&style=paper">less</a> |
|
60 | 60 | <a href="/graph/tip?revcount=120&style=paper">more</a> |
|
61 | 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> | |
|
63 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
|
64 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
|
62 | <a href="/rev/9d8c40cba617?style=paper">third</a> | |
|
63 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
|
64 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
|
65 | 65 | <a href="/graph/tip?revcount=30&style=paper">less</a> |
|
66 | 66 | <a href="/graph/tip?revcount=120&style=paper">more</a> |
|
67 | 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 | 126 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> |
|
127 | 127 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> |
|
128 | 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> | |
|
130 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
|
129 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |
|
130 | <a href="/rev/43c799df6e75?style=paper">first</a> | |
|
131 | 131 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> |
|
132 | 132 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> |
|
133 | 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 | 259 | <a href="/graph/tip?revcount=30&style=coal">less</a> |
|
260 | 260 | <a href="/graph/tip?revcount=120&style=coal">more</a> |
|
261 | 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> | |
|
263 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
|
264 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
|
262 | <a href="/rev/9d8c40cba617?style=coal">third</a> | |
|
263 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
|
264 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
|
265 | 265 | <a href="/graph/tip?revcount=30&style=coal">less</a> |
|
266 | 266 | <a href="/graph/tip?revcount=120&style=coal">more</a> |
|
267 | 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 | 326 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> |
|
327 | 327 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> |
|
328 | 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> | |
|
330 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
|
329 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |
|
330 | <a href="/rev/43c799df6e75?style=coal">first</a> | |
|
331 | 331 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> |
|
332 | 332 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> |
|
333 | 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