Mercurial > kallithea
changeset 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 | 458fd829aa20 |
children | a2218bdbf45d |
files | rhodecode/public/css/style.css rhodecode/templates/pullrequests/pullrequest_show.html |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/css/style.css Wed Jun 12 12:20:57 2013 +0200 +++ b/rhodecode/public/css/style.css Thu Jun 27 23:54:22 2013 +0200 @@ -4667,7 +4667,7 @@ div.pr-title { font-size: 1.6em; } -div.pr-details-title{ +div.pr-details-title { font-size: 1.6em; margin: 0px 20px 0px 20px; padding: 5px 0px 5px 10px;
--- 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>