mercurial/templates/gitweb/graph.tmpl
changeset 35531 6c2264732dc5
parent 35415 56854848e485
child 35605 45a816361926
equal deleted inserted replaced
35530:acd8a2454b47 35531:6c2264732dc5
    35 <div class="title">&nbsp;</div>
    35 <div class="title">&nbsp;</div>
    36 
    36 
    37 <noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
    37 <noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
    38 
    38 
    39 <div id="wrapper">
    39 <div id="wrapper">
    40 <ul id="nodebgs"></ul>
       
    41 <canvas id="graph"></canvas>
    40 <canvas id="graph"></canvas>
    42 <ul id="graphnodes">{nodes%graphentry}</ul>
    41 <ul id="graphnodes">{nodes%graphentry}</ul>
    43 </div>
    42 </div>
    44 
    43 
    45 <script{if(nonce, ' nonce="{nonce}"')}>
    44 <script{if(nonce, ' nonce="{nonce}"')}>
    46 var data = {jsdata|json};
    45 var data = {jsdata|json};
    47 var graph = new Graph();
    46 var graph = new Graph();
    48 graph.scale({bg_height});
    47 graph.scale({bg_height});
    49 
       
    50 graph.vertex = function(x, y, radius, color, parity, cur) \{
       
    51 	Graph.prototype.vertex.apply(this, arguments);
       
    52 	return ['<li class="bg parity' + parity + '"></li>', ''];
       
    53 }
       
    54 
       
    55 graph.render(data);
    48 graph.render(data);
    56 </script>
    49 </script>
    57 
    50 
    58 <div class="extra_nav">
    51 <div class="extra_nav">
    59 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
    52 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>