diff rhodecode/templates/base/base.html @ 2953:ac83f7a809a6 beta

Add compare button into quick menu
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 23 Oct 2012 14:25:00 +0200
parents f3aee4585f39
children 6104dfd35b16
line wrap: on
line diff
--- a/rhodecode/templates/base/base.html	Tue Oct 23 11:09:27 2012 +0200
+++ b/rhodecode/templates/base/base.html	Tue Oct 23 14:25:00 2012 +0200
@@ -211,6 +211,9 @@
                     %if h.is_hg(c.rhodecode_repo):
                      <li>${h.link_to(_('Open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}</li>
                     %endif
+                    %if c.rhodecode_db_repo.fork:
+                     <li>${h.link_to(_('Compare fork'),h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name),class_='compare_request')}</li>
+                    %endif
                    	<li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
 
                     %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking: