Show More
@@ -602,7 +602,9 b' def graph(web, req, tmpl):' | |||||
602 | desc = templatefilters.firstline(ctx.description()) |
|
602 | desc = templatefilters.firstline(ctx.description()) | |
603 | desc = cgi.escape(desc) |
|
603 | desc = cgi.escape(desc) | |
604 | user = cgi.escape(templatefilters.person(ctx.user())) |
|
604 | user = cgi.escape(templatefilters.person(ctx.user())) | |
605 | data.append((node, vtx, edges, desc, user, age, ctx.tags())) |
|
605 | branch = ctx.branch() | |
|
606 | branch = branch, web.repo.branchtags().get(branch) == ctx.node() | |||
|
607 | data.append((node, vtx, edges, desc, user, age, branch, ctx.tags())) | |||
606 |
|
608 | |||
607 | return tmpl('graph', rev=rev, revcount=revcount, uprev=uprev, |
|
609 | return tmpl('graph', rev=rev, revcount=revcount, uprev=uprev, | |
608 | lessrev=lessrev, revcountmore=revcount and 2 * revcount or 1, |
|
610 | lessrev=lessrev, revcountmore=revcount and 2 * revcount or 1, |
@@ -94,7 +94,7 b' graph.vertex = function(x, y, color, par' | |||||
94 | item = item.replace(/_DESC/, cur[3]); |
|
94 | item = item.replace(/_DESC/, cur[3]); | |
95 | item = item.replace(/_USER/, cur[4]); |
|
95 | item = item.replace(/_USER/, cur[4]); | |
96 | item = item.replace(/_DATE/, cur[5]); |
|
96 | item = item.replace(/_DATE/, cur[5]); | |
97 |
item = item.replace(/_TAGS/, cur[ |
|
97 | item = item.replace(/_TAGS/, cur[7].join(' ')); | |
98 | nodes.innerHTML += item; |
|
98 | nodes.innerHTML += item; | |
99 |
|
99 | |||
100 | } |
|
100 | } |
@@ -86,16 +86,26 b' graph.vertex = function(x, y, color, par' | |||||
86 | item = item.replace(/_DESC/, cur[3]); |
|
86 | item = item.replace(/_DESC/, cur[3]); | |
87 | item = item.replace(/_USER/, cur[4]); |
|
87 | item = item.replace(/_USER/, cur[4]); | |
88 | item = item.replace(/_DATE/, cur[5]); |
|
88 | item = item.replace(/_DATE/, cur[5]); | |
89 | if (cur[6].length) { |
|
89 | ||
90 |
|
|
90 | var tagspan = ''; | |
91 | for (var t in cur[6]) { |
|
91 | if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) { | |
92 | var tag = cur[6][t]; |
|
92 | tagspan = '<span class="logtags">'; | |
93 | tagspan += '<span class="tagtag">' + tag + '</span> '; |
|
93 | if (cur[6][1]) { | |
|
94 | tagspan += '<span class="branchtag" title="' + cur[6][0] + '">'; | |||
|
95 | tagspan += cur[6][0] + '</span> '; | |||
|
96 | } else if (!cur[6][1] && cur[6][0] != 'default') { | |||
|
97 | tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">'; | |||
|
98 | tagspan += cur[6][0] + '</span> '; | |||
|
99 | } | |||
|
100 | if (cur[7].length) { | |||
|
101 | for (var t in cur[7]) { | |||
|
102 | var tag = cur[7][t]; | |||
|
103 | tagspan += '<span class="tagtag">' + tag + '</span> '; | |||
|
104 | } | |||
94 | } |
|
105 | } | |
95 | tagspan += '</span>'; |
|
106 | tagspan += '</span>'; | |
96 | } else { |
|
|||
97 | tagspan = ''; |
|
|||
98 | } |
|
107 | } | |
|
108 | ||||
99 | item = item.replace(/_TAGS/, tagspan); |
|
109 | item = item.replace(/_TAGS/, tagspan); | |
100 | nodes.innerHTML += item; |
|
110 | nodes.innerHTML += item; | |
101 |
|
111 |
General Comments 0
You need to be logged in to leave comments.
Login now