##// END OF EJS Templates
added proposal from mercurial mailing list, to display options for raw diffs, and diffs directly from within changesets view
marcink -
r274:5db466f1 default
parent child Browse files
Show More
@@ -56,12 +56,12 b' from pylons_app.lib import filters'
56
56
57 <div style="clear:both;height:10px"></div>
57 <div style="clear:both;height:10px"></div>
58 <div class="cs_files">
58 <div class="cs_files">
59 %for change,filenode,diff in c.changes:
59 %for change,filenode,diff,cs1,cs2 in c.changes:
60 <div class="cs_${change}">${h.link_to(filenode.path,h.url.current(anchor='CHANGE-%s'%filenode.path))}</div>
60 <div class="cs_${change}">${h.link_to(filenode.path,h.url.current(anchor='CHANGE-%s'%filenode.path))}</div>
61 %endfor
61 %endfor
62 </div>
62 </div>
63
63
64 %for change,filenode,diff in c.changes:
64 %for change,filenode,diff,cs1,cs2 in c.changes:
65 %if change !='removed':
65 %if change !='removed':
66 <div style="clear:both;height:10px"></div>
66 <div style="clear:both;height:10px"></div>
67 <div id="body" class="diffblock">
67 <div id="body" class="diffblock">
@@ -71,13 +71,14 b' from pylons_app.lib import filters'
71 ${h.link_to_if(change!='removed',filenode.path,h.url('files_home',repo_name=c.repo_name,
71 ${h.link_to_if(change!='removed',filenode.path,h.url('files_home',repo_name=c.repo_name,
72 revision=filenode.changeset.raw_id,f_path=filenode.path))}
72 revision=filenode.changeset.raw_id,f_path=filenode.path))}
73 </span>
73 </span>
74
74 %if 1:
75 ##&raquo; <span style="font-size:77%">${h.link_to(_('diff'),
75 &raquo; <span style="font-size:77%">${h.link_to(_('diff'),
76 ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='diff'))}</span>
76 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='diff'))}</span>
77 ##&raquo; <span style="font-size:77%">${h.link_to(_('raw diff'),
77 &raquo; <span style="font-size:77%">${h.link_to(_('raw diff'),
78 ##h.url.current(diff2=c.diff2,diff1=c.diff1.split(':')[-1],diff='raw'))}</span>
78 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='raw'))}</span>
79 ##&raquo; <span style="font-size:77%">${h.link_to(_('download diff'),
79 &raquo; <span style="font-size:77%">${h.link_to(_('download diff'),
80 ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='download'))}</span>
80 h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='download'))}</span>
81 %endif
81 </div>
82 </div>
82 </div>
83 </div>
83 <div class="code-body">
84 <div class="code-body">
General Comments 0
You need to be logged in to leave comments. Login now