##// END OF EJS Templates
coal/paper/monoblue: show branch names in hgweb graph
Benoit Allard -
r7408:f031a12d default
parent child Browse files
Show More
@@ -70,8 +70,7 graph.edge = function(x0, y0, x1, y1, co
70 70
71 71 var revlink = '<li style="_STYLE"><span class="desc">';
72 72 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
73 revlink += '</span><span class="tag">_TAGS</span>';
74 revlink += '<span class="info">_DATE ago, by _USER</span></li>';
73 revlink += '</span>_TAGS<span class="info">_DATE ago, by _USER</span></li>';
75 74
76 75 graph.vertex = function(x, y, color, parity, cur) {
77 76
@@ -90,8 +89,27 graph.vertex = function(x, y, color, par
90 89 item = item.replace(/_DESC/, cur[3]);
91 90 item = item.replace(/_USER/, cur[4]);
92 91 item = item.replace(/_DATE/, cur[5]);
93 item = item.replace(/_TAGS/, cur[7].join('&nbsp; '));
94 92
93 var tagspan = '';
94 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
95 tagspan = '<span class="logtags">';
96 if (cur[6][1]) {
97 tagspan += '<span class="branchhead" title="' + cur[6][0] + '">';
98 tagspan += cur[6][0] + '</span> ';
99 } else if (!cur[6][1] && cur[6][0] != 'default') {
100 tagspan += '<span class="branchname" title="' + cur[6][0] + '">';
101 tagspan += cur[6][0] + '</span> ';
102 }
103 if (cur[7].length) {
104 for (var t in cur[7]) {
105 var tag = cur[7][t];
106 tagspan += '<span class="tag">' + tag + '</span> ';
107 }
108 }
109 tagspan += '</span>';
110 }
111
112 item = item.replace(/_TAGS/, tagspan);
95 113 return [bg, item];
96 114
97 115 }
@@ -59,7 +59,7
59 59
60 60 var revlink = '<li style="_STYLE"><span class="desc">';
61 61 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
62 revlink += '</span><span class="info">_DATE ago, by _USER</span></li>';
62 revlink += '</span>_TAGS<span class="info">_DATE ago, by _USER</span></li>';
63 63
64 64 graph.vertex = function(x, y, color, parity, cur) {
65 65
@@ -79,6 +79,26
79 79 item = item.replace(/_USER/, cur[4]);
80 80 item = item.replace(/_DATE/, cur[5]);
81 81
82 var tagspan = '';
83 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
84 tagspan = '<span class="logtags">';
85 if (cur[6][1]) {
86 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
87 tagspan += cur[6][0] + '</span> ';
88 } else if (!cur[6][1] && cur[6][0] != 'default') {
89 tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
90 tagspan += cur[6][0] + '</span> ';
91 }
92 if (cur[7].length) {
93 for (var t in cur[7]) {
94 var tag = cur[7][t];
95 tagspan += '<span class="tagtag">' + tag + '</span> ';
96 }
97 }
98 tagspan += '</span>';
99 }
100
101 item = item.replace(/_TAGS/, tagspan);
82 102 return [bg, item];
83 103
84 104 }
@@ -119,6 +119,10 a { text-decoration:none; }
119 119 vertical-align: baseline;
120 120 }
121 121
122 ul#graphnodes .branchhead {
123 font-size: 75%;
124 }
125
122 126 .branchname {
123 127 color: #000;
124 128 font-size: 60%;
@@ -110,6 +110,10 a { text-decoration:none; }
110 110 vertical-align: baseline;
111 111 }
112 112
113 ul#graphnodes .branchhead {
114 font-size: 75%;
115 }
116
113 117 .branchname {
114 118 color: #000;
115 119 font-size: 60%;
General Comments 0
You need to be logged in to leave comments. Login now