##// END OF EJS Templates
Move create pull request button in pull requests view into the top...
marcink -
r4081:089fb21d default
parent child Browse files
Show More
@@ -23,6 +23,17 b''
23 <!-- box / title -->
23 <!-- box / title -->
24 <div class="title">
24 <div class="title">
25 ${self.breadcrumbs()}
25 ${self.breadcrumbs()}
26 %if c.rhodecode_user.username != 'default':
27 <ul class="links">
28 %if h.HasPermissionAny('hg.admin','hg.create.repository')() or h.HasReposGroupPermissionAny('group.write', 'group.admin')(c.group.group_name if c.group else None):
29 <li>
30 <span>
31 <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}">${_('Open new pull request')}</a>
32 </span>
33 </li>
34 %endif
35 </ul>
36 %endif
26 </div>
37 </div>
27
38
28 <div style="margin: 0 20px">
39 <div style="margin: 0 20px">
@@ -41,15 +52,9 b''
41 ${h.link_to(_('Show closed pull requests too'), h.url('pullrequest_show_all',repo_name=c.repo_name,from_=c.from_,closed=1))}
52 ${h.link_to(_('Show closed pull requests too'), h.url('pullrequest_show_all',repo_name=c.repo_name,from_=c.from_,closed=1))}
42 %endif
53 %endif
43 </div>
54 </div>
44
45 <div>
46 <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}">${_('Open new pull request')}</a>
47 </div>
48
49 </div>
55 </div>
50
56
51 ${c.pullrequest_data}
57 ${c.pullrequest_data}
52
58
53 </div>
59 </div>
54
55 </%def>
60 </%def>
General Comments 0
You need to be logged in to leave comments. Login now