mercurial/templates/gitweb/graph.tmpl
changeset 35415 56854848e485
parent 35409 f84b01257e06
child 35531 6c2264732dc5
equal deleted inserted replaced
35414:a51541681b8d 35415:56854848e485
    41 <canvas id="graph"></canvas>
    41 <canvas id="graph"></canvas>
    42 <ul id="graphnodes">{nodes%graphentry}</ul>
    42 <ul id="graphnodes">{nodes%graphentry}</ul>
    43 </div>
    43 </div>
    44 
    44 
    45 <script{if(nonce, ' nonce="{nonce}"')}>
    45 <script{if(nonce, ' nonce="{nonce}"')}>
    46 <!-- hide script content
       
    47 
       
    48 var data = {jsdata|json};
    46 var data = {jsdata|json};
    49 var graph = new Graph();
    47 var graph = new Graph();
    50 graph.scale({bg_height});
    48 graph.scale({bg_height});
    51 
    49 
    52 graph.vertex = function(x, y, radius, color, parity, cur) \{
    50 graph.vertex = function(x, y, radius, color, parity, cur) \{
    53 	Graph.prototype.vertex.apply(this, arguments);
    51 	Graph.prototype.vertex.apply(this, arguments);
    54 	return ['<li class="bg parity' + parity + '"></li>', ''];
    52 	return ['<li class="bg parity' + parity + '"></li>', ''];
    55 }
    53 }
    56 
    54 
    57 graph.render(data);
    55 graph.render(data);
    58 
       
    59 // stop hiding script -->
       
    60 </script>
    56 </script>
    61 
    57 
    62 <div class="extra_nav">
    58 <div class="extra_nav">
    63 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
    59 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
    64 <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a>
    60 <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a>