diff rhodecode/templates/pullrequests/pullrequest_show.html @ 4057:6eaee7e2829e

pull requests: link to origin branch
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 27 Jun 2013 23:54:22 +0200
parents 95ec841bfe1f
children ffd45b185016
line wrap: on
line diff
--- a/rhodecode/templates/pullrequests/pullrequest_show.html	Wed Jun 12 12:20:57 2013 +0200
+++ b/rhodecode/templates/pullrequests/pullrequest_show.html	Thu Jun 27 23:54:22 2013 +0200
@@ -71,7 +71,9 @@
              ##%elif h.is_git(c.pull_request.org_repo):
              ##  <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
              ##%endif
-              <span class="spantag">${c.pull_request.org_ref_parts[0]}: ${c.pull_request.org_ref_parts[1]}</span>
+
+              ## branch link is only valid if it is a branch
+              <span class="spantag"><a href="${h.url('summary_home', repo_name=c.pull_request.org_repo.repo_name, anchor=c.pull_request.org_ref_parts[1])}">${c.pull_request.org_ref_parts[0]}: ${c.pull_request.org_ref_parts[1]}</a></span>
               <span>
                %if h.is_hg(c.pull_request.org_repo):
                  | ${_('Pull changes')} <span style="font-family: monospace">hg pull -r ${h.short_id(c.cs_ranges[-1].raw_id)} <a href="${h.url('summary_home', repo_name=c.pull_request.org_repo.repo_name)}">${c.pull_request.org_repo.clone_url()}</a></span>