##// END OF EJS Templates
Use review status labels in changelog view
marcink -
r4076:c7e656e9 default
parent child Browse files
Show More
@@ -1,298 +1,298 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2
2
3 <%inherit file="/base/base.html"/>
3 <%inherit file="/base/base.html"/>
4
4
5 <%def name="title()">
5 <%def name="title()">
6 ${_('%s Changelog') % c.repo_name} &middot;
6 ${_('%s Changelog') % c.repo_name} &middot;
7 %if c.changelog_for_path:
7 %if c.changelog_for_path:
8 /${c.changelog_for_path} &middot;
8 /${c.changelog_for_path} &middot;
9 %endif
9 %endif
10 ${c.rhodecode_name}
10 ${c.rhodecode_name}
11 </%def>
11 </%def>
12
12
13 <%def name="breadcrumbs_links()">
13 <%def name="breadcrumbs_links()">
14 <% size = c.size if c.size <= c.total_cs else c.total_cs %>
14 <% size = c.size if c.size <= c.total_cs else c.total_cs %>
15 ${_('Changelog')}
15 ${_('Changelog')}
16 %if c.changelog_for_path:
16 %if c.changelog_for_path:
17 - /${c.changelog_for_path}
17 - /${c.changelog_for_path}
18 %endif
18 %endif
19 - ${ungettext('showing %d out of %d revision', 'showing %d out of %d revisions', size) % (size, c.total_cs)}
19 - ${ungettext('showing %d out of %d revision', 'showing %d out of %d revisions', size) % (size, c.total_cs)}
20 </%def>
20 </%def>
21
21
22 <%def name="page_nav()">
22 <%def name="page_nav()">
23 ${self.menu('repositories')}
23 ${self.menu('repositories')}
24 </%def>
24 </%def>
25
25
26 <%def name="main()">
26 <%def name="main()">
27 ${self.repo_context_bar('changelog')}
27 ${self.repo_context_bar('changelog')}
28 <div class="box">
28 <div class="box">
29 <!-- box / title -->
29 <!-- box / title -->
30 <div class="title">
30 <div class="title">
31 ${self.breadcrumbs()}
31 ${self.breadcrumbs()}
32 </div>
32 </div>
33 <div class="table">
33 <div class="table">
34 % if c.pagination:
34 % if c.pagination:
35 <div id="graph">
35 <div id="graph">
36 <div style="display:${'none' if c.changelog_for_path else ''}">
36 <div style="display:${'none' if c.changelog_for_path else ''}">
37 <div class="info_box" style="clear: both;padding: 10px 6px;min-height: 12px;text-align: right;">
37 <div class="info_box" style="clear: both;padding: 10px 6px;min-height: 12px;text-align: right;">
38 <a href="#" class="ui-btn small" id="rev_range_container" style="display:none"></a>
38 <a href="#" class="ui-btn small" id="rev_range_container" style="display:none"></a>
39 <a href="#" class="ui-btn small" id="rev_range_clear" style="display:none">${_('Clear selection')}</a>
39 <a href="#" class="ui-btn small" id="rev_range_clear" style="display:none">${_('Clear selection')}</a>
40
40
41 %if c.rhodecode_db_repo.fork:
41 %if c.rhodecode_db_repo.fork:
42 <a id="compare_fork" title="${_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default',merge=1)}" class="ui-btn small">${_('Compare fork with parent')}</a>
42 <a id="compare_fork" title="${_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default',merge=1)}" class="ui-btn small">${_('Compare fork with parent')}</a>
43 %endif
43 %endif
44 %if h.is_hg(c.rhodecode_repo):
44 %if h.is_hg(c.rhodecode_repo):
45 <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('Open new pull request')}</a>
45 <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('Open new pull request')}</a>
46 %endif
46 %endif
47 </div>
47 </div>
48 <div class="container_header">
48 <div class="container_header">
49 ${h.form(h.url.current(),method='get')}
49 ${h.form(h.url.current(),method='get')}
50 <div style="float:left">
50 <div style="float:left">
51 ${h.submit('set',_('Show'),class_="ui-btn")}
51 ${h.submit('set',_('Show'),class_="ui-btn")}
52 ${h.text('size',size=1,value=c.size)}
52 ${h.text('size',size=1,value=c.size)}
53 ${_('revisions')}
53 ${_('revisions')}
54 </div>
54 </div>
55 ${h.end_form()}
55 ${h.end_form()}
56 <div style="float:right">${h.select('branch_filter',c.branch_name,c.branch_filters)}</div>
56 <div style="float:right">${h.select('branch_filter',c.branch_name,c.branch_filters)}</div>
57 </div>
57 </div>
58 </div>
58 </div>
59 <div id="graph_nodes">
59 <div id="graph_nodes">
60 <canvas id="graph_canvas"></canvas>
60 <canvas id="graph_canvas"></canvas>
61 </div>
61 </div>
62 <div id="graph_content">
62 <div id="graph_content">
63
63
64 <table id="changesets">
64 <table id="changesets">
65 <tbody>
65 <tbody>
66 %for cnt,cs in enumerate(c.pagination):
66 %for cnt,cs in enumerate(c.pagination):
67 <tr id="chg_${cnt+1}" class="container ${'tablerow%s' % (cnt%2)}">
67 <tr id="chg_${cnt+1}" class="container ${'tablerow%s' % (cnt%2)}">
68 <td class="checkbox">
68 <td class="checkbox">
69 %if c.changelog_for_path:
69 %if c.changelog_for_path:
70 ${h.checkbox(cs.raw_id,class_="changeset_range", disabled="disabled")}
70 ${h.checkbox(cs.raw_id,class_="changeset_range", disabled="disabled")}
71 %else:
71 %else:
72 ${h.checkbox(cs.raw_id,class_="changeset_range")}
72 ${h.checkbox(cs.raw_id,class_="changeset_range")}
73 %endif
73 %endif
74 <td class="status">
74 <td class="status">
75 %if c.statuses.get(cs.raw_id):
75 %if c.statuses.get(cs.raw_id):
76 <div class="changeset-status-ico">
76 <div class="changeset-status-ico">
77 %if c.statuses.get(cs.raw_id)[2]:
77 %if c.statuses.get(cs.raw_id)[2]:
78 <a class="tooltip" title="${_('Changeset status: %s\nClick to open associated pull request #%s') % (c.statuses.get(cs.raw_id)[0], c.statuses.get(cs.raw_id)[2])}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
78 <a class="tooltip" title="${_('Changeset status: %s\nClick to open associated pull request #%s') % (h.changeset_status_lbl(c.statuses.get(cs.raw_id)[0]), c.statuses.get(cs.raw_id)[2])}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
79 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
79 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
80 </a>
80 </a>
81 %else:
81 %else:
82 <a class="tooltip" title="${_('Changeset status: %s') % c.statuses.get(cs.raw_id)[0]}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
82 <a class="tooltip" title="${_('Changeset status: %s') % h.changeset_status_lbl(c.statuses.get(cs.raw_id)[0])}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
83 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
83 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
84 </a>
84 </a>
85 %endif
85 %endif
86 </div>
86 </div>
87 %endif
87 %endif
88 </td>
88 </td>
89 <td class="author">
89 <td class="author">
90 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),16)}"/>
90 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),16)}"/>
91 <span title="${cs.author}" class="user">${h.shorter(h.person(cs.author),22)}</span>
91 <span title="${cs.author}" class="user">${h.shorter(h.person(cs.author),22)}</span>
92 </td>
92 </td>
93 <td class="hash" style="width:${len(h.show_id(cs))*6.5}px">
93 <td class="hash" style="width:${len(h.show_id(cs))*6.5}px">
94 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}">
94 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}">
95 <span class="changeset_hash">${h.show_id(cs)}</span>
95 <span class="changeset_hash">${h.show_id(cs)}</span>
96 </a>
96 </a>
97 </td>
97 </td>
98 <td class="date">
98 <td class="date">
99 <div class="date">${h.age(cs.date,True)}</div>
99 <div class="date">${h.age(cs.date,True)}</div>
100 </td>
100 </td>
101 <td class="mid">
101 <td class="mid">
102 <div class="log-container">
102 <div class="log-container">
103 <div class="message">${h.urlify_commit(cs.message, c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div>
103 <div class="message">${h.urlify_commit(cs.message, c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div>
104 <div class="expand"><span class="expandtext">&darr; ${_('Show more')} &darr;</span></div>
104 <div class="expand"><span class="expandtext">&darr; ${_('Show more')} &darr;</span></div>
105 <div class="extra-container">
105 <div class="extra-container">
106 %if c.comments.get(cs.raw_id):
106 %if c.comments.get(cs.raw_id):
107 <div class="comments-container">
107 <div class="comments-container">
108 <div class="comments-cnt" title="${_('Changeset has comments')}">
108 <div class="comments-cnt" title="${_('Changeset has comments')}">
109 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
109 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
110 ${len(c.comments[cs.raw_id])}
110 ${len(c.comments[cs.raw_id])}
111 </a>
111 </a>
112 </div>
112 </div>
113 </div>
113 </div>
114 %endif
114 %endif
115 %if h.is_hg(c.rhodecode_repo):
115 %if h.is_hg(c.rhodecode_repo):
116 %for book in cs.bookmarks:
116 %for book in cs.bookmarks:
117 <div class="booktag" title="${_('Bookmark %s') % book}">
117 <div class="booktag" title="${_('Bookmark %s') % book}">
118 ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
118 ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
119 </div>
119 </div>
120 %endfor
120 %endfor
121 %endif
121 %endif
122 %for tag in cs.tags:
122 %for tag in cs.tags:
123 <div class="tagtag" title="${_('Tag %s') % tag}">
123 <div class="tagtag" title="${_('Tag %s') % tag}">
124 ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
124 ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
125 </div>
125 </div>
126 %endfor
126 %endfor
127 %if (not c.branch_name) and cs.branch:
127 %if (not c.branch_name) and cs.branch:
128 <div class="branchtag" title="${_('Branch %s' % cs.branch)}">
128 <div class="branchtag" title="${_('Branch %s' % cs.branch)}">
129 ${h.link_to(h.shorter(cs.branch),h.url('changelog_home',repo_name=c.repo_name,branch=cs.branch))}
129 ${h.link_to(h.shorter(cs.branch),h.url('changelog_home',repo_name=c.repo_name,branch=cs.branch))}
130 </div>
130 </div>
131 %endif
131 %endif
132 </div>
132 </div>
133 </div>
133 </div>
134 </td>
134 </td>
135 </tr>
135 </tr>
136 %endfor
136 %endfor
137 </tbody>
137 </tbody>
138 </table>
138 </table>
139
139
140 <div class="pagination-wh pagination-left">
140 <div class="pagination-wh pagination-left">
141 ${c.pagination.pager('$link_previous ~2~ $link_next')}
141 ${c.pagination.pager('$link_previous ~2~ $link_next')}
142 </div>
142 </div>
143 </div>
143 </div>
144 </div>
144 </div>
145
145
146 <script type="text/javascript" src="${h.url('/js/graph.js')}"></script>
146 <script type="text/javascript" src="${h.url('/js/graph.js')}"></script>
147 <script type="text/javascript">
147 <script type="text/javascript">
148 YAHOO.util.Event.onDOMReady(function(){
148 YAHOO.util.Event.onDOMReady(function(){
149
149
150 //Monitor range checkboxes and build a link to changesets
150 //Monitor range checkboxes and build a link to changesets
151 //ranges
151 //ranges
152 var checkboxes = YUD.getElementsByClassName('changeset_range');
152 var checkboxes = YUD.getElementsByClassName('changeset_range');
153 // register our routes needed for this view
153 // register our routes needed for this view
154 pyroutes.register('changeset_home', "${h.url('changeset_home', repo_name='%(repo_name)s', revision='%(revision)s')}", ['repo_name', 'revision']);
154 pyroutes.register('changeset_home', "${h.url('changeset_home', repo_name='%(repo_name)s', revision='%(revision)s')}", ['repo_name', 'revision']);
155 pyroutes.register('changelog_home', "${h.url('changelog_home', repo_name='%(repo_name)s')}", ['repo_name']);
155 pyroutes.register('changelog_home', "${h.url('changelog_home', repo_name='%(repo_name)s')}", ['repo_name']);
156 pyroutes.register('pullrequest_home', "${h.url('pullrequest_home', repo_name='%(repo_name)s')}", ['repo_name']);
156 pyroutes.register('pullrequest_home', "${h.url('pullrequest_home', repo_name='%(repo_name)s')}", ['repo_name']);
157
157
158 var checkbox_checker = function(e){
158 var checkbox_checker = function(e){
159 var checked_checkboxes = [];
159 var checked_checkboxes = [];
160 for (pos in checkboxes){
160 for (pos in checkboxes){
161 if(checkboxes[pos].checked){
161 if(checkboxes[pos].checked){
162 checked_checkboxes.push(checkboxes[pos]);
162 checked_checkboxes.push(checkboxes[pos]);
163 }
163 }
164 }
164 }
165 if(YUD.get('open_new_pr')){
165 if(YUD.get('open_new_pr')){
166 if(checked_checkboxes.length>1){
166 if(checked_checkboxes.length>1){
167 YUD.setStyle('open_new_pr','display','none');
167 YUD.setStyle('open_new_pr','display','none');
168 } else {
168 } else {
169 YUD.setStyle('open_new_pr','display','');
169 YUD.setStyle('open_new_pr','display','');
170 if(checked_checkboxes.length>0){
170 if(checked_checkboxes.length>0){
171 YUD.get('open_new_pr').innerHTML = _TM['Open new pull request for selected changesets'];
171 YUD.get('open_new_pr').innerHTML = _TM['Open new pull request for selected changesets'];
172 }else{
172 }else{
173 YUD.get('open_new_pr').innerHTML = _TM['Open new pull request'];
173 YUD.get('open_new_pr').innerHTML = _TM['Open new pull request'];
174 }
174 }
175 }
175 }
176 }
176 }
177
177
178 if(checked_checkboxes.length>0){
178 if(checked_checkboxes.length>0){
179 var rev_end = checked_checkboxes[0].name;
179 var rev_end = checked_checkboxes[0].name;
180 var rev_start = checked_checkboxes[checked_checkboxes.length-1].name;
180 var rev_start = checked_checkboxes[checked_checkboxes.length-1].name;
181 var url = pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}',
181 var url = pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}',
182 'revision': rev_start+'...'+rev_end});
182 'revision': rev_start+'...'+rev_end});
183
183
184 var link = (rev_start == rev_end)
184 var link = (rev_start == rev_end)
185 ? _TM['Show selected changeset __S']
185 ? _TM['Show selected changeset __S']
186 : _TM['Show selected changesets __S -> __E'];
186 : _TM['Show selected changesets __S -> __E'];
187
187
188 link = link.replace('__S',rev_start.substr(0,6));
188 link = link.replace('__S',rev_start.substr(0,6));
189 link = link.replace('__E',rev_end.substr(0,6));
189 link = link.replace('__E',rev_end.substr(0,6));
190 YUD.get('rev_range_container').href = url;
190 YUD.get('rev_range_container').href = url;
191 YUD.get('rev_range_container').innerHTML = link;
191 YUD.get('rev_range_container').innerHTML = link;
192 YUD.setStyle('rev_range_container','display','');
192 YUD.setStyle('rev_range_container','display','');
193 YUD.setStyle('rev_range_clear','display','');
193 YUD.setStyle('rev_range_clear','display','');
194
194
195 YUD.get('open_new_pr').href = pyroutes.url('pullrequest_home',
195 YUD.get('open_new_pr').href = pyroutes.url('pullrequest_home',
196 {'repo_name': '${c.repo_name}',
196 {'repo_name': '${c.repo_name}',
197 'rev_start': rev_start,
197 'rev_start': rev_start,
198 'rev_end': rev_end})
198 'rev_end': rev_end})
199
199
200 YUD.setStyle('compare_fork','display','none');
200 YUD.setStyle('compare_fork','display','none');
201 }else{
201 }else{
202 YUD.setStyle('rev_range_container','display','none');
202 YUD.setStyle('rev_range_container','display','none');
203 YUD.setStyle('rev_range_clear','display','none');
203 YUD.setStyle('rev_range_clear','display','none');
204 %if c.branch_name:
204 %if c.branch_name:
205 YUD.get('open_new_pr').href = pyroutes.url('pullrequest_home',
205 YUD.get('open_new_pr').href = pyroutes.url('pullrequest_home',
206 {'repo_name': '${c.repo_name}',
206 {'repo_name': '${c.repo_name}',
207 'branch':'${c.branch_name}'});
207 'branch':'${c.branch_name}'});
208 %else:
208 %else:
209 YUD.get('open_new_pr').href = pyroutes.url('pullrequest_home',
209 YUD.get('open_new_pr').href = pyroutes.url('pullrequest_home',
210 {'repo_name': '${c.repo_name}'});
210 {'repo_name': '${c.repo_name}'});
211 %endif
211 %endif
212 YUD.setStyle('compare_fork','display','');
212 YUD.setStyle('compare_fork','display','');
213 }
213 }
214 };
214 };
215 YUE.onDOMReady(checkbox_checker);
215 YUE.onDOMReady(checkbox_checker);
216 YUE.on(checkboxes,'click', checkbox_checker);
216 YUE.on(checkboxes,'click', checkbox_checker);
217
217
218 YUE.on('rev_range_clear','click',function(e){
218 YUE.on('rev_range_clear','click',function(e){
219 for (var i=0; i<checkboxes.length; i++){
219 for (var i=0; i<checkboxes.length; i++){
220 var cb = checkboxes[i];
220 var cb = checkboxes[i];
221 cb.checked = false;
221 cb.checked = false;
222 }
222 }
223 checkbox_checker();
223 checkbox_checker();
224 YUE.preventDefault(e);
224 YUE.preventDefault(e);
225 });
225 });
226
226
227 var msgs = YUQ('.message');
227 var msgs = YUQ('.message');
228 // get first element height
228 // get first element height
229 var el = YUQ('#graph_content .container')[0];
229 var el = YUQ('#graph_content .container')[0];
230 var row_h = el.clientHeight;
230 var row_h = el.clientHeight;
231 for(var i=0;i<msgs.length;i++){
231 for(var i=0;i<msgs.length;i++){
232 var m = msgs[i];
232 var m = msgs[i];
233
233
234 var h = m.clientHeight;
234 var h = m.clientHeight;
235 var pad = YUD.getStyle(m,'padding');
235 var pad = YUD.getStyle(m,'padding');
236 if(h > row_h){
236 if(h > row_h){
237 var offset = row_h - (h+12);
237 var offset = row_h - (h+12);
238 YUD.setStyle(m.nextElementSibling,'display','block');
238 YUD.setStyle(m.nextElementSibling,'display','block');
239 YUD.setStyle(m.nextElementSibling,'margin-top',offset+'px');
239 YUD.setStyle(m.nextElementSibling,'margin-top',offset+'px');
240 };
240 };
241 }
241 }
242 YUE.on(YUQ('.expand'),'click',function(e){
242 YUE.on(YUQ('.expand'),'click',function(e){
243 var elem = e.currentTarget.parentNode.parentNode;
243 var elem = e.currentTarget.parentNode.parentNode;
244 YUD.setStyle(e.currentTarget,'display','none');
244 YUD.setStyle(e.currentTarget,'display','none');
245 YUD.setStyle(elem,'height','auto');
245 YUD.setStyle(elem,'height','auto');
246
246
247 //redraw the graph, line_count and jsdata are global vars
247 //redraw the graph, line_count and jsdata are global vars
248 set_canvas(100);
248 set_canvas(100);
249
249
250 var r = new BranchRenderer();
250 var r = new BranchRenderer();
251 r.render(jsdata,100,line_count);
251 r.render(jsdata,100,line_count);
252
252
253 });
253 });
254
254
255 // change branch filter
255 // change branch filter
256 YUE.on(YUD.get('branch_filter'),'change',function(e){
256 YUE.on(YUD.get('branch_filter'),'change',function(e){
257 var selected_branch = e.currentTarget.options[e.currentTarget.selectedIndex].value;
257 var selected_branch = e.currentTarget.options[e.currentTarget.selectedIndex].value;
258 if(selected_branch != ''){
258 if(selected_branch != ''){
259 window.location = pyroutes.url('changelog_home', {'repo_name': '${c.repo_name}',
259 window.location = pyroutes.url('changelog_home', {'repo_name': '${c.repo_name}',
260 'branch':selected_branch});
260 'branch':selected_branch});
261 }else{
261 }else{
262 window.location = pyroutes.url('changelog_home', {'repo_name': '${c.repo_name}'});
262 window.location = pyroutes.url('changelog_home', {'repo_name': '${c.repo_name}'});
263 }
263 }
264 });
264 });
265
265
266 function set_canvas(width) {
266 function set_canvas(width) {
267 var c = document.getElementById('graph_nodes');
267 var c = document.getElementById('graph_nodes');
268 var t = document.getElementById('graph_content');
268 var t = document.getElementById('graph_content');
269 canvas = document.getElementById('graph_canvas');
269 canvas = document.getElementById('graph_canvas');
270 var div_h = t.clientHeight;
270 var div_h = t.clientHeight;
271 canvas.setAttribute('height',div_h);
271 canvas.setAttribute('height',div_h);
272 canvas.setAttribute('width',width);
272 canvas.setAttribute('width',width);
273 };
273 };
274 var heads = 1;
274 var heads = 1;
275 var line_count = 0;
275 var line_count = 0;
276 var jsdata = ${c.jsdata|n};
276 var jsdata = ${c.jsdata|n};
277
277
278 for (var i=0;i<jsdata.length;i++) {
278 for (var i=0;i<jsdata.length;i++) {
279 var in_l = jsdata[i][2];
279 var in_l = jsdata[i][2];
280 for (var j in in_l) {
280 for (var j in in_l) {
281 var m = in_l[j][1];
281 var m = in_l[j][1];
282 if (m > line_count)
282 if (m > line_count)
283 line_count = m;
283 line_count = m;
284 }
284 }
285 }
285 }
286 set_canvas(100);
286 set_canvas(100);
287
287
288 var r = new BranchRenderer();
288 var r = new BranchRenderer();
289 r.render(jsdata,100,line_count);
289 r.render(jsdata,100,line_count);
290
290
291 });
291 });
292 </script>
292 </script>
293 %else:
293 %else:
294 ${_('There are no changes yet')}
294 ${_('There are no changes yet')}
295 %endif
295 %endif
296 </div>
296 </div>
297 </div>
297 </div>
298 </%def>
298 </%def>
General Comments 0
You need to be logged in to leave comments. Login now