##// END OF EJS Templates
commits: skip hidden/obsolete commits (on vcsserver) and display branch when DAG diverges on child/parent links
marcink -
r3852:611dc781 default
parent child Browse files
Show More
@@ -274,13 +274,16 b''
274 else if(data.results.length === 2){
274 else if(data.results.length === 2){
275 $('#child_link').addClass('disabled');
275 $('#child_link').addClass('disabled');
276 $('#child_link').addClass('double');
276 $('#child_link').addClass('double');
277
277 var _html = '';
278 var _html = '';
278 _html +='<a title="__title__" href="__url__">__rev__</a> '
279 _html +='<a title="__title__" href="__url__"><span class="tag branchtag"><i class="icon-code-fork"></i>__branch__</span> __rev__</a> '
280 .replace('__branch__', data.results[0].branch)
279 .replace('__rev__','r{0}:{1}'.format(data.results[0].revision, data.results[0].raw_id.substr(0,6)))
281 .replace('__rev__','r{0}:{1}'.format(data.results[0].revision, data.results[0].raw_id.substr(0,6)))
280 .replace('__title__', data.results[0].message)
282 .replace('__title__', data.results[0].message)
281 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[0].raw_id}));
283 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[0].raw_id}));
282 _html +=' | ';
284 _html +=' | ';
283 _html +='<a title="__title__" href="__url__">__rev__</a> '
285 _html +='<a title="__title__" href="__url__"><span class="tag branchtag"><i class="icon-code-fork"></i>__branch__</span> __rev__</a> '
286 .replace('__branch__', data.results[1].branch)
284 .replace('__rev__','r{0}:{1}'.format(data.results[1].revision, data.results[1].raw_id.substr(0,6)))
287 .replace('__rev__','r{0}:{1}'.format(data.results[1].revision, data.results[1].raw_id.substr(0,6)))
285 .replace('__title__', data.results[1].message)
288 .replace('__title__', data.results[1].message)
286 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[1].raw_id}));
289 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[1].raw_id}));
@@ -310,13 +313,16 b''
310 else if(data.results.length === 2){
313 else if(data.results.length === 2){
311 $('#parent_link').addClass('disabled');
314 $('#parent_link').addClass('disabled');
312 $('#parent_link').addClass('double');
315 $('#parent_link').addClass('double');
316
313 var _html = '';
317 var _html = '';
314 _html +='<a title="__title__" href="__url__">Parent __rev__</a>'
318 _html +='<a title="__title__" href="__url__"><span class="tag branchtag"><i class="icon-code-fork"></i>__branch__</span> __rev__</a>'
319 .replace('__branch__', data.results[0].branch)
315 .replace('__rev__','r{0}:{1}'.format(data.results[0].revision, data.results[0].raw_id.substr(0,6)))
320 .replace('__rev__','r{0}:{1}'.format(data.results[0].revision, data.results[0].raw_id.substr(0,6)))
316 .replace('__title__', data.results[0].message)
321 .replace('__title__', data.results[0].message)
317 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[0].raw_id}));
322 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[0].raw_id}));
318 _html +=' | ';
323 _html +=' | ';
319 _html +='<a title="__title__" href="__url__">Parent __rev__</a>'
324 _html +='<a title="__title__" href="__url__"><span class="tag branchtag"><i class="icon-code-fork"></i>__branch__</span> __rev__</a>'
325 .replace('__branch__', data.results[1].branch)
320 .replace('__rev__','r{0}:{1}'.format(data.results[1].revision, data.results[1].raw_id.substr(0,6)))
326 .replace('__rev__','r{0}:{1}'.format(data.results[1].revision, data.results[1].raw_id.substr(0,6)))
321 .replace('__title__', data.results[1].message)
327 .replace('__title__', data.results[1].message)
322 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[1].raw_id}));
328 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[1].raw_id}));
General Comments 0
You need to be logged in to leave comments. Login now