Software /
code /
mercurial-template
Comparison
graph.tmpl @ 0:2f78b9100113 draft
Init.
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Mon, 10 Jul 2023 23:41:04 +0700 |
child | 2:5ffc6136763b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:2f78b9100113 |
---|---|
1 {header} | |
2 <title>Graph {repo|escape}: revision</title> | |
3 <link rel="alternate" type="application/atom+xml" | |
4 href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}: log" /> | |
5 <link rel="alternate" type="application/rss+xml" | |
6 href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}: log" /> | |
7 </head> | |
8 <body> | |
9 <div class="main"> | |
10 <div class="dd-hover menu"> | |
11 <div class="dd-content"> | |
12 <hr /> | |
13 <h6>{repo|escape}</h6> | |
14 <ul> | |
15 <li><a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">log</a></li> | |
16 <li class="active">Graph</li> | |
17 <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li> | |
18 <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> | |
19 <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li> | |
20 </ul> | |
21 <hr /> | |
22 <h6>{symrev}</h6> | |
23 <ul> | |
24 <li><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">browse</a></li> | |
25 <li><a href="{url|urlescape}rev/{symrev}{sessionvars%urlparameter}">changeset</a></li> | |
26 </ul> | |
27 <ul> | |
28 {archives%archiveentry} | |
29 </ul> | |
30 <hr /> | |
31 <ul> | |
32 <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li> | |
33 </ul> | |
34 <div class="atom-logo"> | |
35 <a href="{url|urlescape}rss-bookmarks" title="subscribe to RSS feed"> | |
36 RSS: <img class="rss-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="RSS feed" /> | |
37 </a> | |
38 <a href="{url|urlescape}atom-log" title="subscribe to Atom feed"> | |
39 Atom: <img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="Atom feed" /> | |
40 </a> | |
41 </div> | |
42 </div> | |
43 {logo} | |
44 </div> | |
45 <main> | |
46 <hr /> | |
47 <h1 class="breadcrumb"><a href="/">Software</a> {pathdef%breadcrumb}</h1> | |
48 | |
49 {searchform} | |
50 | |
51 <h2>Graph</h3> | |
52 <div class="navigate"> | |
53 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> | |
54 <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> | |
55 | rev {rev}: {changenav%navgraph} | |
56 </div> | |
57 | |
58 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript> | |
59 | |
60 <div id="wrapper"> | |
61 <canvas id="graph"></canvas> | |
62 <ul id="graphnodes" class="stripes2">{nodes%graphentry}</ul> | |
63 </div> | |
64 | |
65 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | |
66 var data = {jsdata|json}; | |
67 var graph = new Graph(); | |
68 graph.scale({bg_height}); | |
69 graph.render(data); | |
70 </script> | |
71 | |
72 <div class="navigate"> | |
73 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a> | |
74 <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a> | |
75 | rev {rev}: {changenav%navgraph} | |
76 </div> | |
77 | |
78 <p>Scroll all the way down to load more.</p> | |
79 | |
80 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | |
81 ajaxScrollInit( | |
82 '{url|urlescape}graph/%next%{graphvars%urlparameter}', | |
83 '{nextentry%"{node}"}', <!-- NEXTHASH | |
84 function (htmlText) \{ | |
85 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); | |
86 return m ? m[1] : null; | |
87 }, | |
88 '#wrapper', | |
89 '<div class="%class%" style="text-align: center;">%text%</div>', | |
90 'graph' | |
91 ); | |
92 </script> | |
93 | |
94 <p></p> | |
95 <hr /> | |
96 </main> | |
97 </div> | |
98 {logo} | |
99 {banner} | |
100 {footer} |