68 |
68 |
69 } |
69 } |
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 |
78 this.ctx.beginPath(); |
77 this.ctx.beginPath(); |
79 color = this.setColor(color, 0.25, 0.75); |
78 color = this.setColor(color, 0.25, 0.75); |
88 item = item.replace(/_NODEID/, cur[0]); |
87 item = item.replace(/_NODEID/, cur[0]); |
89 item = item.replace(/_NODEID/, cur[0]); |
88 item = item.replace(/_NODEID/, cur[0]); |
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(' ')); |
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 } |
94 |
111 |
|
112 item = item.replace(/_TAGS/, tagspan); |
95 return [bg, item]; |
113 return [bg, item]; |
96 |
114 |
97 } |
115 } |
98 |
116 |
99 graph.render(data); |
117 graph.render(data); |