Changeset - 089fb21d19d5
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 12 years ago 2013-07-03 00:10:47
marcin@python-works.com
Move create pull request button in pull requests view into the top
menu, and hide it when you're not logged in
1 file changed with 11 insertions and 6 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/pullrequests/pullrequest_show_all.html
Show inline comments
 
@@ -23,6 +23,17 @@ ${self.repo_context_bar('showpullrequest
 
    <!-- box / title -->
 
    <div class="title">
 
        ${self.breadcrumbs()}
 
        %if c.rhodecode_user.username != 'default':
 
            <ul class="links">
 
            %if h.HasPermissionAny('hg.admin','hg.create.repository')() or h.HasReposGroupPermissionAny('group.write', 'group.admin')(c.group.group_name if c.group else None):
 
              <li>
 
                  <span>
 
                      <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}">${_('Open new pull request')}</a>
 
                  </span>
 
              </li>
 
            %endif
 
            </ul>
 
        %endif
 
    </div>
 

	
 
    <div style="margin: 0 20px">
 
@@ -41,15 +52,9 @@ ${self.repo_context_bar('showpullrequest
 
            ${h.link_to(_('Show closed pull requests too'), h.url('pullrequest_show_all',repo_name=c.repo_name,from_=c.from_,closed=1))}
 
        %endif
 
        </div>
 

	
 
        <div>
 
            <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}">${_('Open new pull request')}</a>
 
        </div>
 

	
 
    </div>
 

	
 
    ${c.pullrequest_data}
 

	
 
</div>
 

	
 
</%def>
0 comments (0 inline, 0 general)