diff --git a/rhodecode/templates/changeset/changeset_range.html b/rhodecode/templates/changeset/changeset_range.html --- a/rhodecode/templates/changeset/changeset_range.html +++ b/rhodecode/templates/changeset/changeset_range.html @@ -16,6 +16,12 @@ ${self.menu('changelog')} +<%def name="fid(raw_id,path)" filter="strip"> + <% + return 'C-%s-%s' % (h.short_id(raw_id),h.safeid(h.safe_unicode(path))) + %> + + <%def name="main()">
@@ -25,13 +31,9 @@
-
+

${_('Compare View')}

+
${_('Changesets')} - r${c.cs_ranges[0].revision}:${h.short_id(c.cs_ranges[0].raw_id)} -> r${c.cs_ranges[-1].revision}:${h.short_id(c.cs_ranges[-1].raw_id)} -

${_('Compare View')}

- ##» ${h.link_to(_('raw diff'), - ##h.url('raw_changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='show'))} - ##» ${h.link_to(_('download diff'), - ##h.url('raw_changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='download'))}
@@ -54,7 +56,7 @@ %for cs in c.cs_ranges:
r${cs}
%for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]: -
${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.repo_name_slug('C%s-%s' % (cs.short_id,h.safe_unicode(filenode.path)))))}
+
${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=self.fid(cs.raw_id,filenode.path)))}
%endfor %endfor
@@ -65,8 +67,8 @@ %for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]: %if change !='removed':
-
-
+
+
${h.link_to_if(change!='removed',h.safe_unicode(filenode.path),h.url('files_home',repo_name=c.repo_name,