Show More
@@ -0,0 +1,7 b'' | |||||
|
1 | <li data-node="{node|short}"> | |||
|
2 | <span class="desc"> | |||
|
3 | <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a> | |||
|
4 | </span> | |||
|
5 | {alltags} | |||
|
6 | <span class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</span> | |||
|
7 | </li> |
@@ -143,6 +143,7 b'' | |||||
143 | <File Id="paper.filerevision.tmpl" Name="filerevision.tmpl" /> |
|
143 | <File Id="paper.filerevision.tmpl" Name="filerevision.tmpl" /> | |
144 | <File Id="paper.footer.tmpl" Name="footer.tmpl" /> |
|
144 | <File Id="paper.footer.tmpl" Name="footer.tmpl" /> | |
145 | <File Id="paper.graph.tmpl" Name="graph.tmpl" /> |
|
145 | <File Id="paper.graph.tmpl" Name="graph.tmpl" /> | |
|
146 | <File Id="paper.graphentry.tmpl" Name="graphentry.tmpl" /> | |||
146 | <File Id="paper.header.tmpl" Name="header.tmpl" /> |
|
147 | <File Id="paper.header.tmpl" Name="header.tmpl" /> | |
147 | <File Id="paper.index.tmpl" Name="index.tmpl" /> |
|
148 | <File Id="paper.index.tmpl" Name="index.tmpl" /> | |
148 | <File Id="paper.manifest.tmpl" Name="manifest.tmpl" /> |
|
149 | <File Id="paper.manifest.tmpl" Name="manifest.tmpl" /> |
@@ -52,7 +52,7 b'' | |||||
52 | <div id="wrapper"> |
|
52 | <div id="wrapper"> | |
53 | <ul id="nodebgs" class="stripes2"></ul> |
|
53 | <ul id="nodebgs" class="stripes2"></ul> | |
54 | <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> |
|
54 | <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> | |
55 | <ul id="graphnodes"></ul> |
|
55 | <ul id="graphnodes">{nodes%graphentry}</ul> | |
56 | </div> |
|
56 | </div> | |
57 |
|
57 | |||
58 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
|
58 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | |
@@ -71,38 +71,13 b' graph.vertex = function(x, y, radius, co' | |||||
71 |
|
71 | |||
72 | var bg = '<li class="bg"></li>'; |
|
72 | var bg = '<li class="bg"></li>'; | |
73 | var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; |
|
73 | var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; | |
74 | var nstyle = 'padding-left: ' + left + 'px;'; |
|
|||
75 |
|
74 | |||
76 | var tagspan = ''; |
|
75 | var item = document.querySelector('[data-node="' + cur.node + '"]'); | |
77 | if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) \{ |
|
76 | if (item) \{ | |
78 | tagspan = '<span class="logtags">'; |
|
77 | item.style.paddingLeft = left + 'px'; | |
79 | if (cur[6][1]) \{ |
|
|||
80 | tagspan += '<span class="branchhead" title="' + cur[6][0] + '">'; |
|
|||
81 | tagspan += cur[6][0] + '</span> '; |
|
|||
82 | } else if (!cur[6][1] && cur[6][0] != 'default') \{ |
|
|||
83 | tagspan += '<span class="branchname" title="' + cur[6][0] + '">'; |
|
|||
84 | tagspan += cur[6][0] + '</span> '; |
|
|||
85 | } |
|
|||
86 | if (cur[7].length) \{ |
|
|||
87 | for (var t in cur[7]) \{ |
|
|||
88 | var tag = cur[7][t]; |
|
|||
89 | tagspan += '<span class="tag">' + tag + '</span> '; |
|
|||
90 | } |
|
|||
91 | } |
|
|||
92 | if (cur[8].length) \{ |
|
|||
93 | for (var b in cur[8]) \{ |
|
|||
94 | var bookmark = cur[8][b]; |
|
|||
95 | tagspan += '<span class="tag">' + bookmark + '</span> '; |
|
|||
96 | } |
|
|||
97 | } |
|
|||
98 | tagspan += '</span>'; |
|
|||
99 | } |
|
78 | } | |
100 |
|
||||
101 | var item = '<li style="' + nstyle + '"><span class="desc">'; |
|
|||
102 | item += '<a href="{url|urlescape}rev/' + cur[0] + '{sessionvars%urlparameter}" title="' + cur[0] + '">' + cur[3] + '</a>'; |
|
|||
103 | item += '</span>' + tagspan + '<span class="info">' + cur[5] + ', by ' + cur[4] + '</span></li>'; |
|
|||
104 |
|
79 | |||
105 |
return [bg, |
|
80 | return [bg, '']; | |
106 |
|
81 | |||
107 | } |
|
82 | } | |
108 |
|
83 |
@@ -9,6 +9,7 b' changelog = shortlog.tmpl' | |||||
9 | shortlog = shortlog.tmpl |
|
9 | shortlog = shortlog.tmpl | |
10 | shortlogentry = shortlogentry.tmpl |
|
10 | shortlogentry = shortlogentry.tmpl | |
11 | graph = graph.tmpl |
|
11 | graph = graph.tmpl | |
|
12 | graphentry = graphentry.tmpl | |||
12 | help = help.tmpl |
|
13 | help = help.tmpl | |
13 | helptopics = helptopics.tmpl |
|
14 | helptopics = helptopics.tmpl | |
14 |
|
15 |
@@ -315,38 +315,13 b' Some tests for hgweb in an empty reposit' | |||||
315 |
|
315 | |||
316 | var bg = '<li class="bg"></li>'; |
|
316 | var bg = '<li class="bg"></li>'; | |
317 | var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; |
|
317 | var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; | |
318 | var nstyle = 'padding-left: ' + left + 'px;'; |
|
|||
319 |
|
318 | |||
320 | var tagspan = ''; |
|
319 | var item = document.querySelector('[data-node="' + cur.node + '"]'); | |
321 | if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) { |
|
320 | if (item) { | |
322 | tagspan = '<span class="logtags">'; |
|
321 | item.style.paddingLeft = left + 'px'; | |
323 | if (cur[6][1]) { |
|
|||
324 | tagspan += '<span class="branchhead" title="' + cur[6][0] + '">'; |
|
|||
325 | tagspan += cur[6][0] + '</span> '; |
|
|||
326 | } else if (!cur[6][1] && cur[6][0] != 'default') { |
|
|||
327 | tagspan += '<span class="branchname" title="' + cur[6][0] + '">'; |
|
|||
328 | tagspan += cur[6][0] + '</span> '; |
|
|||
329 | } |
|
|||
330 | if (cur[7].length) { |
|
|||
331 | for (var t in cur[7]) { |
|
|||
332 | var tag = cur[7][t]; |
|
|||
333 | tagspan += '<span class="tag">' + tag + '</span> '; |
|
|||
334 | } |
|
|||
335 | } |
|
|||
336 | if (cur[8].length) { |
|
|||
337 | for (var b in cur[8]) { |
|
|||
338 | var bookmark = cur[8][b]; |
|
|||
339 | tagspan += '<span class="tag">' + bookmark + '</span> '; |
|
|||
340 | } |
|
|||
341 | } |
|
|||
342 | tagspan += '</span>'; |
|
|||
343 | } |
|
322 | } | |
344 |
|
||||
345 | var item = '<li style="' + nstyle + '"><span class="desc">'; |
|
|||
346 | item += '<a href="/rev/' + cur[0] + '" title="' + cur[0] + '">' + cur[3] + '</a>'; |
|
|||
347 | item += '</span>' + tagspan + '<span class="info">' + cur[5] + ', by ' + cur[4] + '</span></li>'; |
|
|||
348 |
|
323 | |||
349 |
return [bg, |
|
324 | return [bg, '']; | |
350 |
|
325 | |||
351 | } |
|
326 | } | |
352 |
|
327 |
@@ -59,6 +59,9 b' Set up the repo' | |||||
59 | <a href="/graph/tip?revcount=30&style=paper">less</a> |
|
59 | <a href="/graph/tip?revcount=30&style=paper">less</a> | |
60 | <a href="/graph/tip?revcount=120&style=paper">more</a> |
|
60 | <a href="/graph/tip?revcount=120&style=paper">more</a> | |
61 | | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> |
|
61 | | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> | |
|
62 | <a href="/rev/9d8c40cba617?style=paper">third</a> | |||
|
63 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |||
|
64 | <a href="/rev/43c799df6e75?style=paper">first</a> | |||
62 | <a href="/graph/tip?revcount=30&style=paper">less</a> |
|
65 | <a href="/graph/tip?revcount=30&style=paper">less</a> | |
63 | <a href="/graph/tip?revcount=120&style=paper">more</a> |
|
66 | <a href="/graph/tip?revcount=120&style=paper">more</a> | |
64 | | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> |
|
67 | | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> | |
@@ -123,6 +126,8 b' Set up the repo' | |||||
123 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> |
|
126 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> | |
124 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> |
|
127 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> | |
125 | | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> |
|
128 | | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> | |
|
129 | <a href="/rev/a7c1559b7bba?style=paper">second</a> | |||
|
130 | <a href="/rev/43c799df6e75?style=paper">first</a> | |||
126 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> |
|
131 | <a href="/graph/xyzzy?revcount=30&style=paper">less</a> | |
127 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> |
|
132 | <a href="/graph/xyzzy?revcount=120&style=paper">more</a> | |
128 | | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> |
|
133 | | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> | |
@@ -254,6 +259,9 b' Set up the repo' | |||||
254 | <a href="/graph/tip?revcount=30&style=coal">less</a> |
|
259 | <a href="/graph/tip?revcount=30&style=coal">less</a> | |
255 | <a href="/graph/tip?revcount=120&style=coal">more</a> |
|
260 | <a href="/graph/tip?revcount=120&style=coal">more</a> | |
256 | | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
|
261 | | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> | |
|
262 | <a href="/rev/9d8c40cba617?style=coal">third</a> | |||
|
263 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |||
|
264 | <a href="/rev/43c799df6e75?style=coal">first</a> | |||
257 | <a href="/graph/tip?revcount=30&style=coal">less</a> |
|
265 | <a href="/graph/tip?revcount=30&style=coal">less</a> | |
258 | <a href="/graph/tip?revcount=120&style=coal">more</a> |
|
266 | <a href="/graph/tip?revcount=120&style=coal">more</a> | |
259 | | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
|
267 | | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> | |
@@ -318,6 +326,8 b' Set up the repo' | |||||
318 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> |
|
326 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> | |
319 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> |
|
327 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> | |
320 | | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
|
328 | | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> | |
|
329 | <a href="/rev/a7c1559b7bba?style=coal">second</a> | |||
|
330 | <a href="/rev/43c799df6e75?style=coal">first</a> | |||
321 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> |
|
331 | <a href="/graph/xyzzy?revcount=30&style=coal">less</a> | |
322 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> |
|
332 | <a href="/graph/xyzzy?revcount=120&style=coal">more</a> | |
323 | | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
|
333 | | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> |
General Comments 0
You need to be logged in to leave comments.
Login now