equal
deleted
inserted
replaced
31 <noscript>The revision graph only works with JavaScript-enabled browsers.</noscript> |
31 <noscript>The revision graph only works with JavaScript-enabled browsers.</noscript> |
32 |
32 |
33 <div id="wrapper"> |
33 <div id="wrapper"> |
34 <ul id="nodebgs"></ul> |
34 <ul id="nodebgs"></ul> |
35 <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> |
35 <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> |
36 <ul id="graphnodes"></ul> |
36 <ul id="graphnodes">{nodes%graphentry}</ul> |
37 </div> |
37 </div> |
38 |
38 |
39 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
39 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
40 <!-- hide script content |
40 <!-- hide script content |
41 |
41 |
50 this.ctx.arc(x, y, radius, 0, Math.PI * 2, true); |
50 this.ctx.arc(x, y, radius, 0, Math.PI * 2, true); |
51 this.ctx.fill(); |
51 this.ctx.fill(); |
52 |
52 |
53 var bg = '<li class="bg parity' + parity + '"></li>'; |
53 var bg = '<li class="bg parity' + parity + '"></li>'; |
54 var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; |
54 var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; |
55 var nstyle = 'padding-left: ' + left + 'px;'; |
55 var item = document.querySelector('[data-node="' + cur.node + '"]'); |
56 var item = '<li style="' + nstyle + '"><span class="desc">'; |
56 if (item) \{ |
57 item += '<a href="{url|urlescape}rev/' + cur[0] + '{sessionvars%urlparameter}" title="' + cur[0] + '">' + cur[3] + '</a>'; |
57 item.style.paddingLeft = left + 'px'; |
58 item += '</span><span class="info">' + cur[5] + ', by ' + cur[4] + '</span></li>'; |
58 } |
59 |
59 |
60 return [bg, item]; |
60 return [bg, '']; |
61 |
61 |
62 } |
62 } |
63 |
63 |
64 graph.render(data); |
64 graph.render(data); |
65 |
65 |