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