##// END OF EJS Templates
templates: escape javascript braces
Matt Mackall -
r10856:b07bd417 default
parent child Browse files
Show More
@@ -50,7 +50,7 b' var data = {jsdata|json};'
50 var graph = new Graph();
50 var graph = new Graph();
51 graph.scale({bg_height});
51 graph.scale({bg_height});
52
52
53 graph.edge = function(x0, y0, x1, y1, color) {
53 graph.edge = function(x0, y0, x1, y1, color) \{
54
54
55 this.setColor(color, 0.0, 0.65);
55 this.setColor(color, 0.0, 0.65);
56 this.ctx.beginPath();
56 this.ctx.beginPath();
@@ -65,7 +65,7 b' revlink += \'<a class="list" href="{url}r'
65 revlink += '</span> _TAGS';
65 revlink += '</span> _TAGS';
66 revlink += '<span class="info">_DATE, by _USER</span></li>';
66 revlink += '<span class="info">_DATE, by _USER</span></li>';
67
67
68 graph.vertex = function(x, y, color, parity, cur) {
68 graph.vertex = function(x, y, color, parity, cur) \{
69
69
70 this.ctx.beginPath();
70 this.ctx.beginPath();
71 color = this.setColor(color, 0.25, 0.75);
71 color = this.setColor(color, 0.25, 0.75);
@@ -84,17 +84,17 b' graph.vertex = function(x, y, color, par'
84 item = item.replace(/_DATE/, cur[5]);
84 item = item.replace(/_DATE/, cur[5]);
85
85
86 var tagspan = '';
86 var tagspan = '';
87 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
87 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) \{
88 tagspan = '<span class="logtags">';
88 tagspan = '<span class="logtags">';
89 if (cur[6][1]) {
89 if (cur[6][1]) \{
90 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
90 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
91 tagspan += cur[6][0] + '</span> ';
91 tagspan += cur[6][0] + '</span> ';
92 } else if (!cur[6][1] && cur[6][0] != 'default') {
92 } else if (!cur[6][1] && cur[6][0] != 'default') \{
93 tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
93 tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
94 tagspan += cur[6][0] + '</span> ';
94 tagspan += cur[6][0] + '</span> ';
95 }
95 }
96 if (cur[7].length) {
96 if (cur[7].length) \{
97 for (var t in cur[7]) {
97 for (var t in cur[7]) \{
98 var tag = cur[7][t];
98 var tag = cur[7][t];
99 tagspan += '<span class="tagtag">' + tag + '</span> ';
99 tagspan += '<span class="tagtag">' + tag + '</span> ';
100 }
100 }
@@ -48,7 +48,7 b''
48 var graph = new Graph();
48 var graph = new Graph();
49 graph.scale({bg_height});
49 graph.scale({bg_height});
50
50
51 graph.edge = function(x0, y0, x1, y1, color) {
51 graph.edge = function(x0, y0, x1, y1, color) \{
52
52
53 this.setColor(color, 0.0, 0.65);
53 this.setColor(color, 0.0, 0.65);
54 this.ctx.beginPath();
54 this.ctx.beginPath();
@@ -62,7 +62,7 b''
62 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
62 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
63 revlink += '</span>_TAGS<span class="info">_DATE, by _USER</span></li>';
63 revlink += '</span>_TAGS<span class="info">_DATE, by _USER</span></li>';
64
64
65 graph.vertex = function(x, y, color, parity, cur) {
65 graph.vertex = function(x, y, color, parity, cur) \{
66
66
67 this.ctx.beginPath();
67 this.ctx.beginPath();
68 color = this.setColor(color, 0.25, 0.75);
68 color = this.setColor(color, 0.25, 0.75);
@@ -81,17 +81,17 b''
81 item = item.replace(/_DATE/, cur[5]);
81 item = item.replace(/_DATE/, cur[5]);
82
82
83 var tagspan = '';
83 var tagspan = '';
84 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
84 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) \{
85 tagspan = '<span class="logtags">';
85 tagspan = '<span class="logtags">';
86 if (cur[6][1]) {
86 if (cur[6][1]) \{
87 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
87 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
88 tagspan += cur[6][0] + '</span> ';
88 tagspan += cur[6][0] + '</span> ';
89 } else if (!cur[6][1] && cur[6][0] != 'default') {
89 } else if (!cur[6][1] && cur[6][0] != 'default') \{
90 tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
90 tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
91 tagspan += cur[6][0] + '</span> ';
91 tagspan += cur[6][0] + '</span> ';
92 }
92 }
93 if (cur[7].length) {
93 if (cur[7].length) \{
94 for (var t in cur[7]) {
94 for (var t in cur[7]) \{
95 var tag = cur[7][t];
95 var tag = cur[7][t];
96 tagspan += '<span class="tagtag">' + tag + '</span> ';
96 tagspan += '<span class="tagtag">' + tag + '</span> ';
97 }
97 }
@@ -59,7 +59,7 b' var data = {jsdata|json};'
59 var graph = new Graph();
59 var graph = new Graph();
60 graph.scale({bg_height});
60 graph.scale({bg_height});
61
61
62 graph.edge = function(x0, y0, x1, y1, color) {
62 graph.edge = function(x0, y0, x1, y1, color) \{
63
63
64 this.setColor(color, 0.0, 0.65);
64 this.setColor(color, 0.0, 0.65);
65 this.ctx.beginPath();
65 this.ctx.beginPath();
@@ -73,7 +73,7 b' var revlink = \'<li style="_STYLE"><span '
73 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
73 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
74 revlink += '</span>_TAGS<span class="info">_DATE, by _USER</span></li>';
74 revlink += '</span>_TAGS<span class="info">_DATE, by _USER</span></li>';
75
75
76 graph.vertex = function(x, y, color, parity, cur) {
76 graph.vertex = function(x, y, color, parity, cur) \{
77
77
78 this.ctx.beginPath();
78 this.ctx.beginPath();
79 color = this.setColor(color, 0.25, 0.75);
79 color = this.setColor(color, 0.25, 0.75);
@@ -92,17 +92,17 b' graph.vertex = function(x, y, color, par'
92 item = item.replace(/_DATE/, cur[5]);
92 item = item.replace(/_DATE/, cur[5]);
93
93
94 var tagspan = '';
94 var tagspan = '';
95 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
95 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) \{
96 tagspan = '<span class="logtags">';
96 tagspan = '<span class="logtags">';
97 if (cur[6][1]) {
97 if (cur[6][1]) \{
98 tagspan += '<span class="branchhead" title="' + cur[6][0] + '">';
98 tagspan += '<span class="branchhead" title="' + cur[6][0] + '">';
99 tagspan += cur[6][0] + '</span> ';
99 tagspan += cur[6][0] + '</span> ';
100 } else if (!cur[6][1] && cur[6][0] != 'default') {
100 } else if (!cur[6][1] && cur[6][0] != 'default') \{
101 tagspan += '<span class="branchname" title="' + cur[6][0] + '">';
101 tagspan += '<span class="branchname" title="' + cur[6][0] + '">';
102 tagspan += cur[6][0] + '</span> ';
102 tagspan += cur[6][0] + '</span> ';
103 }
103 }
104 if (cur[7].length) {
104 if (cur[7].length) \{
105 for (var t in cur[7]) {
105 for (var t in cur[7]) \{
106 var tag = cur[7][t];
106 var tag = cur[7][t];
107 tagspan += '<span class="tag">' + tag + '</span> ';
107 tagspan += '<span class="tag">' + tag + '</span> ';
108 }
108 }
@@ -43,7 +43,7 b' var data = {jsdata|json};'
43 var graph = new Graph();
43 var graph = new Graph();
44 graph.scale({bg_height});
44 graph.scale({bg_height});
45
45
46 graph.edge = function(x0, y0, x1, y1, color) {
46 graph.edge = function(x0, y0, x1, y1, color) \{
47
47
48 this.setColor(color, 0.0, 0.65);
48 this.setColor(color, 0.0, 0.65);
49 this.ctx.beginPath();
49 this.ctx.beginPath();
@@ -57,7 +57,7 b' var revlink = \'<li style="_STYLE"><span '
57 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
57 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
58 revlink += '</span><span class="info">_DATE, by _USER</span></li>';
58 revlink += '</span><span class="info">_DATE, by _USER</span></li>';
59
59
60 graph.vertex = function(x, y, color, parity, cur) {
60 graph.vertex = function(x, y, color, parity, cur) \{
61
61
62 this.ctx.beginPath();
62 this.ctx.beginPath();
63 color = this.setColor(color, 0.25, 0.75);
63 color = this.setColor(color, 0.25, 0.75);
General Comments 0
You need to be logged in to leave comments. Login now