##// END OF EJS Templates
side-by-side diffs: use full power of mergerly whitespace and interactive merge modes
marcink -
r4062:368589df default
parent child Browse files
Show More
@@ -45,8 +45,8 b''
45 <a href="${h.url('files_diff_2way_home',repo_name=c.repo_name,f_path=h.safe_unicode(c.node1.path),diff2=c.cs2.raw_id,diff1=c.cs1.raw_id,diff='diff',fulldiff=1)}" class="tooltip" title="${h.tooltip(_('Show full side-by-side diff for this file'))}"><img class="icon" src="${h.url('/images/icons/application_double.png')}"/></a>
45 <a href="${h.url('files_diff_2way_home',repo_name=c.repo_name,f_path=h.safe_unicode(c.node1.path),diff2=c.cs2.raw_id,diff1=c.cs1.raw_id,diff='diff',fulldiff=1)}" class="tooltip" title="${h.tooltip(_('Show full side-by-side diff for this file'))}"><img class="icon" src="${h.url('/images/icons/application_double.png')}"/></a>
46 <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(c.node1.path),diff2=c.cs2.raw_id,diff1=c.cs1.raw_id,diff='raw')}" class="tooltip" title="${h.tooltip(_('Raw diff'))}"><img class="icon" src="${h.url('/images/icons/page_white.png')}"/></a>
46 <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(c.node1.path),diff2=c.cs2.raw_id,diff1=c.cs1.raw_id,diff='raw')}" class="tooltip" title="${h.tooltip(_('Raw diff'))}"><img class="icon" src="${h.url('/images/icons/page_white.png')}"/></a>
47 <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(c.node1.path),diff2=c.cs2.raw_id,diff1=c.cs1.raw_id,diff='download')}" class="tooltip" title="${h.tooltip(_('Download diff'))}"><img class="icon" src="${h.url('/images/icons/page_save.png')}"/></a>
47 <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(c.node1.path),diff2=c.cs2.raw_id,diff1=c.cs1.raw_id,diff='download')}" class="tooltip" title="${h.tooltip(_('Download diff'))}"><img class="icon" src="${h.url('/images/icons/page_save.png')}"/></a>
48 ##${c.ignorews_url(request.GET, h.FID(c.cs2,path))}
48 ${h.checkbox('ignorews', label=_('ignore white space'))}
49 ##${c.context_url(request.GET, h.FID(c.cs2,path))}
49 ${h.checkbox('edit_mode', label=_('turn on edit mode'))}
50 </div>
50 </div>
51 </div>
51 </div>
52 </div>
52 </div>
@@ -73,6 +73,17 b" var orig2 = '${(c.orig2)|n}';"
73 setValue(orig2);
73 setValue(orig2);
74 },
74 },
75 });
75 });
76 $('#ignorews').change(function(e){
77 var val = e.currentTarget.checked;
78 $('#compare').mergely('options', {ignorews: val});
79 $('#compare').mergely('update');
80 })
81 $('#edit_mode').change(function(e){
82 var val = !e.currentTarget.checked;
83 $('#compare').mergely('cm', 'lhs').setOption('readOnly', val);
84 $('#compare').mergely('cm', 'rhs').setOption('readOnly', val);
85 $('#compare').mergely('update');
86 })
76 });
87 });
77 </script>
88 </script>
78
89
General Comments 0
You need to be logged in to leave comments. Login now