##// END OF EJS Templates
monoblue: render changesets server-side on /graph page
av6 -
r35221:75f9f366 default
parent child Browse files
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>
@@ -115,6 +115,7 b''
115 <File Id="monoblue.filerevision.tmpl" Name="filerevision.tmpl" />
115 <File Id="monoblue.filerevision.tmpl" Name="filerevision.tmpl" />
116 <File Id="monoblue.footer.tmpl" Name="footer.tmpl" />
116 <File Id="monoblue.footer.tmpl" Name="footer.tmpl" />
117 <File Id="monoblue.graph.tmpl" Name="graph.tmpl" />
117 <File Id="monoblue.graph.tmpl" Name="graph.tmpl" />
118 <File Id="monoblue.graphentry.tmpl" Name="graphentry.tmpl" />
118 <File Id="monoblue.header.tmpl" Name="header.tmpl" />
119 <File Id="monoblue.header.tmpl" Name="header.tmpl" />
119 <File Id="monoblue.index.tmpl" Name="index.tmpl" />
120 <File Id="monoblue.index.tmpl" Name="index.tmpl" />
120 <File Id="monoblue.manifest.tmpl" Name="manifest.tmpl" />
121 <File Id="monoblue.manifest.tmpl" Name="manifest.tmpl" />
@@ -31,7 +31,7 b''
31 <div id="wrapper">
31 <div id="wrapper">
32 <ul id="nodebgs"></ul>
32 <ul id="nodebgs"></ul>
33 <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas>
33 <canvas id="graph" width="{canvaswidth}" height="{canvasheight}"></canvas>
34 <ul id="graphnodes"></ul>
34 <ul id="graphnodes">{nodes%graphentry}</ul>
35 </div>
35 </div>
36
36
37 <script{if(nonce, ' nonce="{nonce}"')}>
37 <script{if(nonce, ' nonce="{nonce}"')}>
@@ -52,38 +52,13 b''
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;';
56
55
57 var tagspan = '';
56 var item = document.querySelector('[data-node="' + cur.node + '"]');
58 if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) \{
57 if (item) \{
59 tagspan = '<span class="logtags">';
58 item.style.paddingLeft = left + 'px';
60 if (cur[6][1]) \{
61 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
62 tagspan += cur[6][0] + '</span> ';
63 } else if (!cur[6][1] && cur[6][0] != 'default') \{
64 tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
65 tagspan += cur[6][0] + '</span> ';
66 }
67 if (cur[7].length) \{
68 for (var t in cur[7]) \{
69 var tag = cur[7][t];
70 tagspan += '<span class="tagtag">' + tag + '</span> ';
71 }
72 }
73 if (cur[8].length) \{
74 for (var t in cur[8]) \{
75 var bookmark = cur[8][t];
76 tagspan += '<span class="bookmarktag">' + bookmark + '</span> ';
77 }
78 }
79 tagspan += '</span>';
80 }
59 }
81
60
82 var item = '<li style="' + nstyle + '"><span class="desc">';
61 return [bg, ''];
83 item += '<a href="{url|urlescape}rev/' + cur[0] + '{sessionvars%urlparameter}" title="' + cur[0] + '">' + cur[3] + '</a>';
84 item += '</span>' + tagspan + '<span class="info">' + cur[5] + ', by ' + cur[4] + '</span></li>';
85
86 return [bg, item];
87
62
88 }
63 }
89
64
@@ -282,6 +282,7 b' index = index.tmpl'
282 urlparameter = '{separator}{name}={value|urlescape}'
282 urlparameter = '{separator}{name}={value|urlescape}'
283 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
283 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
284 graph = graph.tmpl
284 graph = graph.tmpl
285 graphentry = graphentry.tmpl
285 breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
286 breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
286
287
287 searchform = '
288 searchform = '
@@ -731,6 +731,9 b' Set up the repo'
731
731
732 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS
732 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS
733 <li><a href="/file/tip?style=monoblue">files</a></li>
733 <li><a href="/file/tip?style=monoblue">files</a></li>
734 <a href="/rev/9d8c40cba617?style=monoblue">third</a>
735 <a href="/rev/a7c1559b7bba?style=monoblue">second</a>
736 <a href="/rev/43c799df6e75?style=monoblue">first</a>
734 <a href="/graph/tip?revcount=30&style=monoblue">less</a>
737 <a href="/graph/tip?revcount=30&style=monoblue">less</a>
735 <a href="/graph/tip?revcount=120&style=monoblue">more</a>
738 <a href="/graph/tip?revcount=120&style=monoblue">more</a>
736 | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a>
739 | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a>
@@ -810,6 +813,8 b' Set up the repo'
810
813
811 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS
814 $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS
812 <li><a href="/file/xyzzy?style=monoblue">files</a></li>
815 <li><a href="/file/xyzzy?style=monoblue">files</a></li>
816 <a href="/rev/a7c1559b7bba?style=monoblue">second</a>
817 <a href="/rev/43c799df6e75?style=monoblue">first</a>
813 <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a>
818 <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a>
814 <a href="/graph/xyzzy?revcount=120&style=monoblue">more</a>
819 <a href="/graph/xyzzy?revcount=120&style=monoblue">more</a>
815 | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a>
820 | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a href="/graph/tip?style=monoblue">tip</a>
General Comments 0
You need to be logged in to leave comments. Login now