changeset 2512:8ece6d04a282 beta

fixed compare view for git (by changed to use raw_id)
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 26 Jun 2012 04:11:10 +0200
parents 33c69eb9df9f
children 388843a3a3c0
files rhodecode/templates/changelog/changelog.html
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/changelog/changelog.html	Tue Jun 26 03:42:37 2012 +0200
+++ b/rhodecode/templates/changelog/changelog.html	Tue Jun 26 04:11:10 2012 +0200
@@ -54,7 +54,7 @@
 					<div id="chg_${cnt+1}" class="container ${'tablerow%s' % (cnt%2)}">
 						<div class="left">
 							<div>
-							${h.checkbox(cs.short_id,class_="changeset_range")}
+							${h.checkbox(cs.raw_id,class_="changeset_range")}
 							<span class="tooltip" title="${h.tooltip(h.age(cs.date))}"><a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}"><span class="changeset_id">${cs.revision}:<span class="changeset_hash">${h.short_id(cs.raw_id)}</span></span></a></span>
 							</div>
 							<div class="author">
@@ -160,8 +160,8 @@
                             		rev_start+'...'+rev_end);
 
                         var link = "<a href="+url+">${_('Show selected changes __S -> __E')}</a>"
-                        link = link.replace('__S',rev_start);
-                        link = link.replace('__E',rev_end);
+                        link = link.replace('__S',rev_start.substr(0,6));
+                        link = link.replace('__E',rev_end.substr(0,6));
                         YUD.get('rev_range_container').innerHTML = link;
                         YUD.setStyle('rev_range_container','display','');
                         }