changeset 4428:0e60c5bb34f0

pull requests: use the right repo when linking to side-by-side diffs
author Mads Kiilerich <madski@unity3d.com>
date Tue, 12 Aug 2014 13:08:23 +0200
parents 1ffa190f686a
children b141bae7e44a
files kallithea/templates/changeset/diff_block.html
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/changeset/diff_block.html	Tue Aug 12 13:08:23 2014 +0200
+++ b/kallithea/templates/changeset/diff_block.html	Tue Aug 12 13:08:23 2014 +0200
@@ -86,11 +86,9 @@
                   %endif
               </div>
               <div class="diff-actions">
-                %if c.other_repo.repo_name == c.repo_name:
-                  <a href="${h.url('files_diff_2way_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode_path),diff1=c.other_rev,diff2=c.org_rev,diff='diff',fulldiff=1)}" class="tooltip" title="${h.tooltip(_('Show full side-by-side diff for this file'))}">
-                      <img class="icon" src="${h.url('/images/icons/application_double.png')}"/>
-                  </a>
-                %endif
+                <a href="${h.url('files_diff_2way_home',repo_name=c.org_repo.repo_name,f_path=h.safe_unicode(filenode_path),diff1=c.other_rev,diff2=c.org_rev,diff='diff',fulldiff=1)}" class="tooltip" title="${h.tooltip(_('Show full side-by-side diff for this file'))}">
+                  <img class="icon" src="${h.url('/images/icons/application_double.png')}"/>
+                </a>
                 ${c.ignorews_url(request.GET)}
                 ${c.context_url(request.GET)}
               </div>