Show More
@@ -0,0 +1,6 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 | <span class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</span> | |||
|
6 | </li> |
@@ -211,6 +211,7 b'' | |||||
211 | <File Id="spartan.filerevision.tmpl" Name="filerevision.tmpl" /> |
|
211 | <File Id="spartan.filerevision.tmpl" Name="filerevision.tmpl" /> | |
212 | <File Id="spartan.footer.tmpl" Name="footer.tmpl" /> |
|
212 | <File Id="spartan.footer.tmpl" Name="footer.tmpl" /> | |
213 | <File Id="spartan.graph.tmpl" Name="graph.tmpl" /> |
|
213 | <File Id="spartan.graph.tmpl" Name="graph.tmpl" /> | |
|
214 | <File Id="spartan.graphentry.tmpl" Name="graphentry.tmpl" /> | |||
214 | <File Id="spartan.header.tmpl" Name="header.tmpl" /> |
|
215 | <File Id="spartan.header.tmpl" Name="header.tmpl" /> | |
215 | <File Id="spartan.index.tmpl" Name="index.tmpl" /> |
|
216 | <File Id="spartan.index.tmpl" Name="index.tmpl" /> | |
216 | <File Id="spartan.manifest.tmpl" Name="manifest.tmpl" /> |
|
217 | <File Id="spartan.manifest.tmpl" Name="manifest.tmpl" /> |
@@ -33,7 +33,7 b' navigate: <small class="navigate">{chang' | |||||
33 | <div id="wrapper"> |
|
33 | <div id="wrapper"> | |
34 | <ul id="nodebgs"></ul> |
|
34 | <ul id="nodebgs"></ul> | |
35 | <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> |
|
35 | <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas> | |
36 | <ul id="graphnodes"></ul> |
|
36 | <ul id="graphnodes">{nodes%graphentry}</ul> | |
37 | </div> |
|
37 | </div> | |
38 |
|
38 | |||
39 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> |
|
39 | <script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}> | |
@@ -52,12 +52,12 b' graph.vertex = function(x, y, radius, co' | |||||
52 |
|
52 | |||
53 | var bg = '<li class="bg parity' + parity + '"></li>'; |
|
53 | var bg = '<li class="bg parity' + parity + '"></li>'; | |
54 | var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; |
|
54 | var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; | |
55 | var nstyle = 'padding-left: ' + left + 'px;'; |
|
55 | var item = document.querySelector('[data-node="' + cur.node + '"]'); | |
56 | var item = '<li style="' + nstyle + '"><span class="desc">'; |
|
56 | if (item) \{ | |
57 | item += '<a href="{url|urlescape}rev/' + cur[0] + '{sessionvars%urlparameter}" title="' + cur[0] + '">' + cur[3] + '</a>'; |
|
57 | item.style.paddingLeft = left + 'px'; | |
58 | item += '</span><span class="info">' + cur[5] + ', by ' + cur[4] + '</span></li>'; |
|
58 | } | |
59 |
|
59 | |||
60 |
return [bg, |
|
60 | return [bg, '']; | |
61 |
|
61 | |||
62 | } |
|
62 | } | |
63 |
|
63 |
@@ -7,6 +7,7 b' changelog = changelog.tmpl' | |||||
7 | shortlog = shortlog.tmpl |
|
7 | shortlog = shortlog.tmpl | |
8 | shortlogentry = shortlogentry.tmpl |
|
8 | shortlogentry = shortlogentry.tmpl | |
9 | graph = graph.tmpl |
|
9 | graph = graph.tmpl | |
|
10 | graphentry = graphentry.tmpl | |||
10 | naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
11 | naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
11 | navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
12 | navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' | |
12 | navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
|
13 | navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> ' |
@@ -946,6 +946,9 b' Set up the repo' | |||||
946 | <a href="/shortlog/tip?style=spartan">shortlog</a> |
|
946 | <a href="/shortlog/tip?style=spartan">shortlog</a> | |
947 | <a href="/file/tip/?style=spartan">files</a> |
|
947 | <a href="/file/tip/?style=spartan">files</a> | |
948 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> |
|
948 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> | |
|
949 | <a href="/rev/9d8c40cba617?style=spartan">third</a> | |||
|
950 | <a href="/rev/a7c1559b7bba?style=spartan">second</a> | |||
|
951 | <a href="/rev/43c799df6e75?style=spartan">first</a> | |||
949 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> |
|
952 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> | |
950 |
|
953 | |||
951 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=spartan' | egrep $REVLINKS |
|
954 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=spartan' | egrep $REVLINKS | |
@@ -1023,6 +1026,8 b' Set up the repo' | |||||
1023 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> |
|
1026 | <a href="/shortlog/xyzzy?style=spartan">shortlog</a> | |
1024 | <a href="/file/xyzzy/?style=spartan">files</a> |
|
1027 | <a href="/file/xyzzy/?style=spartan">files</a> | |
1025 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> |
|
1028 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> | |
|
1029 | <a href="/rev/a7c1559b7bba?style=spartan">second</a> | |||
|
1030 | <a href="/rev/43c799df6e75?style=spartan">first</a> | |||
1026 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> |
|
1031 | navigate: <small class="navigate"><a href="/graph/43c799df6e75?style=spartan">(0)</a> <a href="/graph/tip?style=spartan">tip</a> </small> | |
1027 |
|
1032 | |||
1028 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=spartan' | egrep $REVLINKS |
|
1033 | $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file/xyzzy?style=spartan' | egrep $REVLINKS |
General Comments 0
You need to be logged in to leave comments.
Login now