##// END OF EJS Templates
templates: enforce more consistency by being less flexible in templates...
Mads Kiilerich -
r3609:2ea981f9 beta
parent child Browse files
Show More
@@ -51,20 +51,14 b''
51 <!-- END FOOTER -->
51 <!-- END FOOTER -->
52
52
53 ### MAKO DEFS ###
53 ### MAKO DEFS ###
54 <%def name="page_nav()">
55 ${self.menu()}
56 </%def>
57
58 <%def name="breadcrumbs()">
54 <%def name="breadcrumbs()">
59 <div class="breadcrumbs">
55 <div class="breadcrumbs">
60 ${self.breadcrumbs_links()}
56 ${self.breadcrumbs_links()}
61 </div>
57 </div>
62 </%def>
58 </%def>
63
59
64 <%def name="context_bar(current=None)">
60 <%def name="context_bar(current)">
65 %if c.repo_name:
66 ${repo_context_bar(current)}
61 ${repo_context_bar(current)}
67 %endif
68 </%def>
62 </%def>
69
63
70 <%def name="admin_menu()">
64 <%def name="admin_menu()">
@@ -9,6 +9,10 b''
9 ${_('Forks')}
9 ${_('Forks')}
10 </%def>
10 </%def>
11
11
12 <%def name="page_nav()">
13 ${self.menu('repositories')}
14 </%def>
15
12 <%def name="main()">
16 <%def name="main()">
13 ${self.context_bar('showforks')}
17 ${self.context_bar('showforks')}
14 <div class="box">
18 <div class="box">
@@ -8,6 +8,10 b''
8 ${_('New pull request')}
8 ${_('New pull request')}
9 </%def>
9 </%def>
10
10
11 <%def name="page_nav()">
12 ${self.menu('repositories')}
13 </%def>
14
11 <%def name="main()">
15 <%def name="main()">
12 ${self.context_bar('showpullrequest')}
16 ${self.context_bar('showpullrequest')}
13 <div class="box">
17 <div class="box">
@@ -8,6 +8,10 b''
8 ${_('Pull request #%s') % c.pull_request.pull_request_id}
8 ${_('Pull request #%s') % c.pull_request.pull_request_id}
9 </%def>
9 </%def>
10
10
11 <%def name="page_nav()">
12 ${self.menu('repositories')}
13 </%def>
14
11 <%def name="main()">
15 <%def name="main()">
12 ${self.context_bar('showpullrequest')}
16 ${self.context_bar('showpullrequest')}
13 <div class="box">
17 <div class="box">
@@ -8,6 +8,10 b''
8 ${_('Pull requests')}
8 ${_('Pull requests')}
9 </%def>
9 </%def>
10
10
11 <%def name="page_nav()">
12 ${self.menu('repositories')}
13 </%def>
14
11 <%def name="main()">
15 <%def name="main()">
12 ${self.context_bar('showpullrequest')}
16 ${self.context_bar('showpullrequest')}
13 <div class="box">
17 <div class="box">
@@ -29,7 +29,9 b''
29 %endif
29 %endif
30 </%def>
30 </%def>
31 <%def name="main()">
31 <%def name="main()">
32 %if c.repo_name:
32 ${self.context_bar('options')}
33 ${self.context_bar('options')}
34 %endif
33 <div class="box">
35 <div class="box">
34 <!-- box / title -->
36 <!-- box / title -->
35 <div class="title">
37 <div class="title">
General Comments 0
You need to be logged in to leave comments. Login now