##// 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 var revlink = '<li style="_STYLE"><span class="desc">';
71 var revlink = '<li style="_STYLE"><span class="desc">';
72 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
72 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
73 revlink += '</span><span class="tag">_TAGS</span>';
73 revlink += '</span>_TAGS<span class="info">_DATE ago, by _USER</span></li>';
74 revlink += '<span class="info">_DATE ago, by _USER</span></li>';
75
74
76 graph.vertex = function(x, y, color, parity, cur) {
75 graph.vertex = function(x, y, color, parity, cur) {
77
76
@@ -90,8 +89,27 graph.vertex = function(x, y, color, par
90 item = item.replace(/_DESC/, cur[3]);
89 item = item.replace(/_DESC/, cur[3]);
91 item = item.replace(/_USER/, cur[4]);
90 item = item.replace(/_USER/, cur[4]);
92 item = item.replace(/_DATE/, cur[5]);
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 return [bg, item];
113 return [bg, item];
96
114
97 }
115 }
@@ -59,7 +59,7
59
59
60 var revlink = '<li style="_STYLE"><span class="desc">';
60 var revlink = '<li style="_STYLE"><span class="desc">';
61 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
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 graph.vertex = function(x, y, color, parity, cur) {
64 graph.vertex = function(x, y, color, parity, cur) {
65
65
@@ -79,6 +79,26
79 item = item.replace(/_USER/, cur[4]);
79 item = item.replace(/_USER/, cur[4]);
80 item = item.replace(/_DATE/, cur[5]);
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 return [bg, item];
102 return [bg, item];
83
103
84 }
104 }
@@ -119,6 +119,10 a { text-decoration:none; }
119 vertical-align: baseline;
119 vertical-align: baseline;
120 }
120 }
121
121
122 ul#graphnodes .branchhead {
123 font-size: 75%;
124 }
125
122 .branchname {
126 .branchname {
123 color: #000;
127 color: #000;
124 font-size: 60%;
128 font-size: 60%;
@@ -110,6 +110,10 a { text-decoration:none; }
110 vertical-align: baseline;
110 vertical-align: baseline;
111 }
111 }
112
112
113 ul#graphnodes .branchhead {
114 font-size: 75%;
115 }
116
113 .branchname {
117 .branchname {
114 color: #000;
118 color: #000;
115 font-size: 60%;
119 font-size: 60%;
General Comments 0
You need to be logged in to leave comments. Login now