Annotate

graph.tmpl @ 10:ee33ee14040a draft

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