##// 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 50 var graph = new Graph();
51 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 55 this.setColor(color, 0.0, 0.65);
56 56 this.ctx.beginPath();
@@ -65,7 +65,7 b' revlink += \'<a class="list" href="{url}r'
65 65 revlink += '</span> _TAGS';
66 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 70 this.ctx.beginPath();
71 71 color = this.setColor(color, 0.25, 0.75);
@@ -84,17 +84,17 b' graph.vertex = function(x, y, color, par'
84 84 item = item.replace(/_DATE/, cur[5]);
85 85
86 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 88 tagspan = '<span class="logtags">';
89 if (cur[6][1]) {
89 if (cur[6][1]) \{
90 90 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
91 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 93 tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
94 94 tagspan += cur[6][0] + '</span> ';
95 95 }
96 if (cur[7].length) {
97 for (var t in cur[7]) {
96 if (cur[7].length) \{
97 for (var t in cur[7]) \{
98 98 var tag = cur[7][t];
99 99 tagspan += '<span class="tagtag">' + tag + '</span> ';
100 100 }
@@ -48,7 +48,7 b''
48 48 var graph = new Graph();
49 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 53 this.setColor(color, 0.0, 0.65);
54 54 this.ctx.beginPath();
@@ -62,7 +62,7 b''
62 62 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
63 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 67 this.ctx.beginPath();
68 68 color = this.setColor(color, 0.25, 0.75);
@@ -81,17 +81,17 b''
81 81 item = item.replace(/_DATE/, cur[5]);
82 82
83 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 85 tagspan = '<span class="logtags">';
86 if (cur[6][1]) {
86 if (cur[6][1]) \{
87 87 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
88 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 90 tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
91 91 tagspan += cur[6][0] + '</span> ';
92 92 }
93 if (cur[7].length) {
94 for (var t in cur[7]) {
93 if (cur[7].length) \{
94 for (var t in cur[7]) \{
95 95 var tag = cur[7][t];
96 96 tagspan += '<span class="tagtag">' + tag + '</span> ';
97 97 }
@@ -59,7 +59,7 b' var data = {jsdata|json};'
59 59 var graph = new Graph();
60 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 64 this.setColor(color, 0.0, 0.65);
65 65 this.ctx.beginPath();
@@ -73,7 +73,7 b' var revlink = \'<li style="_STYLE"><span '
73 73 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
74 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 78 this.ctx.beginPath();
79 79 color = this.setColor(color, 0.25, 0.75);
@@ -92,17 +92,17 b' graph.vertex = function(x, y, color, par'
92 92 item = item.replace(/_DATE/, cur[5]);
93 93
94 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 96 tagspan = '<span class="logtags">';
97 if (cur[6][1]) {
97 if (cur[6][1]) \{
98 98 tagspan += '<span class="branchhead" title="' + cur[6][0] + '">';
99 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 101 tagspan += '<span class="branchname" title="' + cur[6][0] + '">';
102 102 tagspan += cur[6][0] + '</span> ';
103 103 }
104 if (cur[7].length) {
105 for (var t in cur[7]) {
104 if (cur[7].length) \{
105 for (var t in cur[7]) \{
106 106 var tag = cur[7][t];
107 107 tagspan += '<span class="tag">' + tag + '</span> ';
108 108 }
@@ -43,7 +43,7 b' var data = {jsdata|json};'
43 43 var graph = new Graph();
44 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 48 this.setColor(color, 0.0, 0.65);
49 49 this.ctx.beginPath();
@@ -57,7 +57,7 b' var revlink = \'<li style="_STYLE"><span '
57 57 revlink += '<a href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID">_DESC</a>';
58 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 62 this.ctx.beginPath();
63 63 color = this.setColor(color, 0.25, 0.75);
General Comments 0
You need to be logged in to leave comments. Login now