<%inherit file="/base/base.html"/> <%namespace name="diff_block" file="/changeset/diff_block.html"/> <%def name="title()"> ${_('%s File Diff') % c.repo_name} %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif <%def name="breadcrumbs_links()"> ${_('Compare')} r${c.commit_1.revision}:${h.short_id(c.commit_1.raw_id)} % if c.filename1 != c.filename: ${c.filename1} % endif ... r${c.commit_2.revision}:${h.short_id(c.commit_2.raw_id)} <%def name="menu_bar_nav()"> ${self.menu_items(active='repositories')} <%def name="menu_bar_subnav()"> ${self.repo_menu(active='changelog')} <%def name="breadcrumbs_links()"> ${_('Compare')} r${c.commit_1.revision}:${h.short_id(c.commit_1.raw_id)} % if c.filename1 != c.filename: ${c.filename1} % endif ... r${c.commit_2.revision}:${h.short_id(c.commit_2.raw_id)} % if c.filename1 == c.filename: ${_('for')} ${c.filename1} % endif <%def name="main()">
${self.repo_page_title(c.rhodecode_db_repo)}
${self.breadcrumbs()}
%if not c.commit_ranges:

${_('No commits')}

%else:
${_('Target')}
${h.link_to('r%s:%s' % (c.commit_1.revision, h.short_id(c.commit_1.raw_id)), h.url('changeset_home',repo_name=c.repo_name, revision=c.commit_1.raw_id))}
${_('Source')}
${h.link_to('r%s:%s' % (c.commit_2.revision, h.short_id(c.commit_2.raw_id)), h.url('changeset_home',repo_name=c.repo_name, revision=c.commit_2.raw_id))}
%endif
##CS <%include file="../compare/compare_commits.html" /> ## FILES
${_('Expand All')} | ${_('Collapse All')}

% if c.binary_file: ${_('Cannot diff binary files')} % elif (c.lines_added == 0 and c.lines_deleted == 0): ${_('File was not changed in this commit range')} % else: ${diff_block.diff_summary_text(len(c.files), c.lines_added, c.lines_deleted)} % endif

% if (c.lines_added > 0 or c.lines_deleted > 0):
%for FID, (cs1, cs2, change, path, diff, stats, file) in c.changes.iteritems(): %endfor
%if (stats):
${h.fancy_file_stats(stats)}
%endif
${diff|n} % if file and file["is_limited_diff"]: % if file["exceeds_limit"]: ${diff_block.file_message()} % else:
${_('Diff was truncated. File content available only in full diff.')} ${_('Show full diff')}
% endif % endif
% endif