diff_block.html
41 lines
| 2.4 KiB
| text/html
|
HtmlLexer
r1787 | ## -*- coding: utf-8 -*- | |||
##usage: | ||||
## <%namespace name="diff_block" file="/changeset/diff_block.html"/> | ||||
## ${diff_block.diff_block(changes)} | ||||
## | ||||
<%def name="diff_block(changes)"> | ||||
%for change,filenode,diff,cs1,cs2,stat in changes: | ||||
%if change !='removed': | ||||
r2164 | <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}_target" style="clear:both;margin-top:25px"></div> | |||
r1845 | <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}" class="diffblock margined comm"> | |||
r1787 | <div class="code-header"> | |||
<div class="changeset_header"> | ||||
<div class="changeset_file"> | ||||
${h.link_to_if(change!='removed',h.safe_unicode(filenode.path),h.url('files_home',repo_name=c.repo_name, | ||||
revision=filenode.changeset.raw_id,f_path=h.safe_unicode(filenode.path)))} | ||||
</div> | ||||
r1865 | <div class="diff-actions"> | |||
r2427 | <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='diff',fulldiff=1)}" class="tooltip" title="${h.tooltip(_('diff'))}"><img class="icon" src="${h.url('/images/icons/page_white_go.png')}"/></a> | |||
<a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='raw')}" class="tooltip" title="${h.tooltip(_('raw diff'))}"><img class="icon" src="${h.url('/images/icons/page_white.png')}"/></a> | ||||
<a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='download')}" class="tooltip" title="${h.tooltip(_('download diff'))}"><img class="icon" src="${h.url('/images/icons/page_white_get.png')}"/></a> | ||||
r2161 | ${c.ignorews_url(request.GET, h.FID(filenode.changeset.raw_id,filenode.path))} | |||
${c.context_url(request.GET, h.FID(filenode.changeset.raw_id,filenode.path))} | ||||
r1865 | </div> | |||
r1787 | <span style="float:right;margin-top:-3px"> | |||
<label> | ||||
${_('show inline comments')} | ||||
${h.checkbox('',checked="checked",class_="show-inline-comments",id_for=h.FID(filenode.changeset.raw_id,filenode.path))} | ||||
</label> | ||||
</span> | ||||
</div> | ||||
</div> | ||||
<div class="code-body"> | ||||
r1888 | <div class="full_f_path" path="${h.safe_unicode(filenode.path)}"></div> | |||
r1789 | ${diff|n} | |||
r1787 | </div> | |||
</div> | ||||
%endif | ||||
%endfor | ||||
r1888 | </%def> | |||