## -*- coding: utf-8 -*- <%inherit file="/base/base.mako"/> <%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/> <%def name="title()"> %if c.compare_home: ${_('%s Compare') % c.repo_name} %else: ${_('%s Compare') % c.repo_name} - ${'%s@%s' % (c.source_repo.repo_name, c.source_ref)} > ${'%s@%s' % (c.target_repo.repo_name, c.target_ref)} %endif %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif <%def name="breadcrumbs_links()"> <%def name="menu_bar_nav()"> ${self.menu_items(active='repositories')} <%def name="menu_bar_subnav()"> ${self.repo_menu(active='compare')} <%def name="main()">

${_('Compare Commits')} % if c.file_path: ${_('for file')} ${c.file_path} % endif % if c.commit_ranges: r${c.commit_ranges[0].idx}:${h.short_id(c.commit_ranges[0].raw_id)}...r${c.commit_ranges[-1].idx}:${h.short_id(c.commit_ranges[-1].raw_id)} % endif

${_('Target')}:

## The hidden elements are replaced with a select2 widget ${h.hidden('compare_source')}

${_('Source')}:

## The hidden elements are replaced with a select2 widget ${h.hidden('compare_target')}

${_('Actions')}:

% if c.compare_home: ${_('Compare Commits')} %if c.rhodecode_db_repo.fork: ${_('Compare with origin')} %endif ${_('Swap')} ${_('Comment')}
${_('Compare commits, branches, bookmarks or tags.')}
% elif c.preview_mode: ${_('Compare Commits')} ${_('Swap')} ${_('Comment')} % else: ${_('Compare Commits')} ${_('Swap')} ## allow comment only if there are commits to comment on % if c.diffset and c.diffset.files and c.commit_ranges: ${_('Comment')} % else: ${_('Comment')} % endif % endif
## commit status form
## use JS script to load it quickly before potentially large diffs render long time ## this prevents from situation when large diffs block rendering of select2 fields ## table diff data
% if not c.compare_home: % endif