diff --git a/rhodecode/templates/compare/compare_diff.html b/rhodecode/templates/compare/compare_diff.html --- a/rhodecode/templates/compare/compare_diff.html +++ b/rhodecode/templates/compare/compare_diff.html @@ -2,7 +2,14 @@ <%inherit file="/base/base.html"/> <%def name="title()"> - ${_('%s Compare') % c.repo_name} - ${'%s@%s' % (c.org_repo.repo_name, c.org_ref)} -> ${'%s@%s' % (c.other_repo.repo_name, c.other_ref)} · ${c.rhodecode_name} + %if c.compare_home: + ${_('%s Compare') % c.repo_name} + %else: + ${_('%s Compare') % c.repo_name} - ${'%s@%s' % (c.org_repo.repo_name, c.org_ref)} > ${'%s@%s' % (c.other_repo.repo_name, c.other_ref)} + %endif + %if c.rhodecode_name: + · ${c.rhodecode_name} + %endif <%def name="breadcrumbs_links()"> @@ -22,68 +29,161 @@ ${self.repo_context_bar('changelog')}
-
+
- ${'%s@%s' % (c.org_repo.repo_name, c.org_ref)} -> ${'%s@%s' % (c.other_repo.repo_name, c.other_ref)} [swap] + ${h.hidden('compare_org')} ${h.hidden('compare_other')} + %if not c.compare_home: + ${_('Swap')} + %endif +
${_('Compare Revisions')}
-
- ##CS -
${ungettext('Showing %s commit','Showing %s commits', len(c.cs_ranges)) % len(c.cs_ranges)}
- <%include file="compare_cs.html" /> - ## FILES -
+ %if c.compare_home: +
+
${_('Compare revisions, branches, bookmarks or tags.')}
+
+ %else: +
+ ##CS +
${ungettext('Showing %s commit','Showing %s commits', len(c.cs_ranges)) % len(c.cs_ranges)}
+ <%include file="compare_cs.html" /> - % if c.limited_diff: - ${ungettext('%s file changed', '%s files changed', len(c.files)) % len(c.files)} - % else: - ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.files)) % (len(c.files),c.lines_added,c.lines_deleted)}: - %endif + ## FILES +
+ + % if c.limited_diff: + ${ungettext('%s file changed', '%s files changed', len(c.files)) % len(c.files)} + % else: + ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.files)) % (len(c.files),c.lines_added,c.lines_deleted)}: + %endif -
-
- %if not c.files: - ${_('No files')} - %endif - %for fid, change, f, stat in c.files: -
-
${h.link_to(h.safe_unicode(f),h.url.current(anchor=fid, **request.GET.mixed()))}
-
${h.fancy_file_stats(stat)}
-
- %endfor -
- % if c.limited_diff: -
${_('Changeset was too big and was cut off...')} ${_('Show full diff')}
- % endif -
+
+
+ %if not c.files: + ${_('No files')} + %endif + %for fid, change, f, stat in c.files: +
+
${h.link_to(h.safe_unicode(f),h.url.current(anchor=fid, **request.GET.mixed()))}
+
${h.fancy_file_stats(stat)}
+
+ %endfor +
+ % if c.limited_diff: +
${_('Changeset was too big and was cut off...')} ${_('Show full diff')}
+ % endif +
+ + ## diff block + <%namespace name="diff_block" file="/changeset/diff_block.html"/> + %for fid, change, f, stat in c.files: + ${diff_block.diff_block_simple([c.changes[fid]])} + %endfor + % if c.limited_diff: +

${_('Changeset was too big and was cut off...')} ${_('Show full diff')}

+ % endif + %endif
- ## diff block - <%namespace name="diff_block" file="/changeset/diff_block.html"/> - %for fid, change, f, stat in c.files: - ${diff_block.diff_block_simple([c.changes[fid]])} - %endfor - % if c.limited_diff: -

${_('Changeset was too big and was cut off...')} ${_('Show full diff')}

- % endif - -