changeset 2446:c4c36060d5f0 beta

Linkify changesets in compare view for easier jumping to changesets for code-review
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 11 Jun 2012 23:27:27 +0200
parents 9b623dcddb02
children 4753a3445ff7 c9b08fdcb788
files rhodecode/templates/changeset/changeset_range.html
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset_range.html	Mon Jun 11 23:23:32 2012 +0200
+++ b/rhodecode/templates/changeset/changeset_range.html	Mon Jun 11 23:27:27 2012 +0200
@@ -49,7 +49,7 @@
 	        <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Files affected')}</div>
 	        <div class="cs_files">
 	               %for cs in c.cs_ranges:
-	                   <div class="cur_cs">r${cs}</div>
+	                   <div class="cur_cs">${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div>
 	                %for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]:
 	                    <div class="cs_${change}">${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.FID(cs.raw_id,filenode.path)))}</div>
 	                %endfor
@@ -63,7 +63,8 @@
      %for cs in c.cs_ranges:
           ##${comment.comment_inline_form(cs)}
           ## diff block
-          <h3 style="border:none;padding-top:8px;">${'r%s:%s' % (cs.revision,h.short_id(cs.raw_id))}</h3>
+          <h3 style="padding-top:8px;">${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</h3>
+          
           ${diff_block.diff_block(c.changes[cs.raw_id])}
           ##${comment.comments(cs)}