##// 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
@@ -1,55 +1,60 b''
1 1 <%inherit file="/base/base.html"/>
2 2
3 3 <%def name="title()">
4 4 ${_('%s Pull Requests') % c.repo_name} &middot; ${c.rhodecode_name}
5 5 </%def>
6 6
7 7 <%def name="breadcrumbs_links()">
8 8 %if c.from_:
9 9 ${_('Pull requests from %s') % c.repo_name}
10 10 %else:
11 11 ${_('Pull requests to %s') % c.repo_name}
12 12 %endif
13 13 </%def>
14 14
15 15 <%def name="page_nav()">
16 16 ${self.menu('repositories')}
17 17 </%def>
18 18
19 19 <%def name="main()">
20 20 ${self.repo_context_bar('showpullrequest')}
21 21
22 22 <div class="box">
23 23 <!-- box / title -->
24 24 <div class="title">
25 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 37 </div>
27 38
28 39 <div style="margin: 0 20px">
29 40 <div>
30 41 %if c.from_:
31 42 ${h.link_to(_('Instead, show pull requests to %s') % c.repo_name, h.url('pullrequest_show_all',repo_name=c.repo_name,closed=c.closed))}
32 43 %else:
33 44 ${h.link_to(_('Instead, show pull requests from %s') % c.repo_name, h.url('pullrequest_show_all',repo_name=c.repo_name,closed=c.closed,from_=1))}
34 45 %endif
35 46 </div>
36 47
37 48 <div>
38 49 %if c.closed:
39 50 ${h.link_to(_('Hide closed pull requests'), h.url('pullrequest_show_all',repo_name=c.repo_name,from_=c.from_))}
40 51 %else:
41 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 53 %endif
43 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 55 </div>
50 56
51 57 ${c.pullrequest_data}
52 58
53 59 </div>
54
55 60 </%def>
General Comments 0
You need to be logged in to leave comments. Login now