annotate templates/paper/graph.tmpl @ 6:a6be8817c05b

move mail_info to config
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 02 Jun 2022 19:18:12 -0600
parents dfc36e7ed22c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 {header}
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2 <title>{repo|escape}: revision graph</title>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 <link rel="alternate" type="application/atom+xml"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4 href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}: log" />
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 <link rel="alternate" type="application/rss+xml"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6 href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}: log" />
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 </head>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8 <body>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 <div class="container">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 <div class="menu">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 <div class="logo">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 <a href="{logourl}">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14 <img src="{staticurl|urlescape}{logoimg}" alt="mercurial" /></a>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
16 <ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
17 <li><a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">log</a></li>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
18 <li class="active">graph</li>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
19 <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
20 <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
21 <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
22 </ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
23 <ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
24 <li><a href="{url|urlescape}rev/{symrev}{sessionvars%urlparameter}">changeset</a></li>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
25 <li><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">browse</a></li>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
26 </ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
27 <ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
28 {archives%archiveentry}
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
29 </ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
30 <ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
31 <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
32 </ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
33 <div class="atom-logo">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
34 <a href="{url|urlescape}atom-log" title="subscribe to atom feed">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
35 <img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="atom feed" />
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
36 </a>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
37 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
38 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
39
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
40 <div class="main">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
41 {breadcrumbs}
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
42 <h3>graph</h3>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
43
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
44 {searchform}
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
45
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
46 <div class="navigate">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
47 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
48 <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
49 | rev {rev}: {changenav%navgraph}
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
50 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
51
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
52 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
53
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
54 <div id="wrapper">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
55 <canvas id="graph"></canvas>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
56 <ul id="graphnodes" class="stripes2">{nodes%graphentry}</ul>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
57 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
58
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
59 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
60 var data = {jsdata|json};
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
61 var graph = new Graph();
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
62 graph.scale({bg_height});
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
63 graph.render(data);
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
64 </script>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
65
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
66 <div class="navigate">
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
67 <a href="{url|urlescape}graph/{symrev}{lessvars%urlparameter}">less</a>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
68 <a href="{url|urlescape}graph/{symrev}{morevars%urlparameter}">more</a>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
69 | rev {rev}: {changenav%navgraph}
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
70 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
71
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
72 <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
73 ajaxScrollInit(
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
74 '{url|urlescape}graph/%next%{graphvars%urlparameter}',
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
75 '{nextentry%"{node}"}', <!-- NEXTHASH
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
76 function (htmlText) \{
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
77 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
78 return m ? m[1] : null;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
79 },
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
80 '#wrapper',
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
81 '<div class="%class%" style="text-align: center;">%text%</div>',
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
82 'graph'
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
83 );
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
84 </script>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
85
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
86 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
87 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
88
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
89 {footer}