## -*- coding: utf-8 -*- ##usage: ## <%namespace name="diff_block" file="/changeset/diff_block.html"/> ## ${diff_block.diff_block(change)} ## <%def name="diff_block(change)"> %for op,filenode,diff,cs1,cs2,stat in change: %if op !='removed':
${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)))}
${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))}
${diff|n}
%endif %endfor <%def name="diff_block_simple(change)"> %for op,filenode_path,diff in change:
${diff|n}
%endfor