Show More
@@ -22,13 +22,12 b'' | |||
|
22 | 22 | ${self.menu_items(active='admin')} |
|
23 | 23 | </%def> |
|
24 | 24 | |
|
25 | <%def name="menu_bar_subnav()"> | |
|
26 | ${self.admin_menu(active='audit_logs')} | |
|
27 | </%def> | |
|
28 | ||
|
25 | 29 | <%def name="main()"> |
|
26 | 30 | <div class="box"> |
|
27 | <!-- box / title --> | |
|
28 | <div class="title"> | |
|
29 | ${self.admin_menu()} | |
|
30 | </div> | |
|
31 | <!-- end box / title --> | |
|
32 | 31 | <div class="table"> |
|
33 | 32 | <div id="user_log"> |
|
34 | 33 | <%include file="/admin/admin_log_base.mako" /> |
@@ -18,12 +18,13 b'' | |||
|
18 | 18 | ${self.menu_items(active='admin')} |
|
19 | 19 | </%def> |
|
20 | 20 | |
|
21 | <%def name="menu_bar_subnav()"> | |
|
22 | ${self.admin_menu(active='authentication')} | |
|
23 | </%def> | |
|
24 | ||
|
21 | 25 | <%def name="main()"> |
|
22 | 26 | |
|
23 | 27 | <div class="box"> |
|
24 | <div class="title"> | |
|
25 | ${self.admin_menu()} | |
|
26 | </div> | |
|
27 | 28 | |
|
28 | 29 | <div class='sidebar-col-wrapper'> |
|
29 | 30 |
@@ -18,11 +18,12 b'' | |||
|
18 | 18 | ${self.menu_items(active='admin')} |
|
19 | 19 | </%def> |
|
20 | 20 | |
|
21 | <%def name="menu_bar_subnav()"> | |
|
22 | ${self.admin_menu(active='defaults')} | |
|
23 | </%def> | |
|
24 | ||
|
21 | 25 | <%def name="main()"> |
|
22 | 26 | <div class="box"> |
|
23 | <div class="title"> | |
|
24 | ${self.admin_menu()} | |
|
25 | </div> | |
|
26 | 27 | |
|
27 | 28 | ##main |
|
28 | 29 | <div class="sidebar-col-wrapper"> |
@@ -31,12 +31,6 b'' | |||
|
31 | 31 | %endif |
|
32 | 32 | </%def> |
|
33 | 33 | |
|
34 | <%def name="menu_bar_subnav()"> | |
|
35 | %if c.repo: | |
|
36 | ${self.repo_menu(active='options')} | |
|
37 | %endif | |
|
38 | </%def> | |
|
39 | ||
|
40 | 34 | <%def name="main_content()"> |
|
41 | 35 | ${next.body()} |
|
42 | 36 | </%def> |
@@ -2,7 +2,7 b'' | |||
|
2 | 2 | <%inherit file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 |
${_(' |
|
|
5 | ${_('Integrations administration')} | |
|
6 | 6 | %if c.rhodecode_name: |
|
7 | 7 | · ${h.branding(c.rhodecode_name)} |
|
8 | 8 | %endif |
@@ -18,6 +18,10 b'' | |||
|
18 | 18 | ${self.menu_items(active='admin')} |
|
19 | 19 | </%def> |
|
20 | 20 | |
|
21 | <%def name="menu_bar_subnav()"> | |
|
22 | ${self.admin_menu(active='integrations')} | |
|
23 | </%def> | |
|
24 | ||
|
21 | 25 | <%def name="side_bar_nav()"> |
|
22 | 26 | <li class="active"> |
|
23 | 27 | <a href="${h.route_path('global_integrations_home')}">Global</a> |
@@ -30,9 +34,6 b'' | |||
|
30 | 34 | |
|
31 | 35 | <%def name="main()"> |
|
32 | 36 | <div class="box"> |
|
33 | <div class="title"> | |
|
34 | ${self.admin_menu()} | |
|
35 | </div> | |
|
36 | 37 | |
|
37 | 38 | ##main |
|
38 | 39 | <div class='sidebar-col-wrapper'> |
@@ -18,6 +18,10 b'' | |||
|
18 | 18 | ${self.menu_items(active='admin')} |
|
19 | 19 | </%def> |
|
20 | 20 | |
|
21 | <%def name="menu_bar_subnav()"> | |
|
22 | ${self.admin_menu()} | |
|
23 | </%def> | |
|
24 | ||
|
21 | 25 | <%def name="side_bar_nav()"> |
|
22 | 26 | |
|
23 | 27 | </%def> |
@@ -28,9 +32,6 b'' | |||
|
28 | 32 | |
|
29 | 33 | <%def name="main()"> |
|
30 | 34 | <div class="box"> |
|
31 | <div class="title"> | |
|
32 | ${self.admin_menu()} | |
|
33 | </div> | |
|
34 | 35 | |
|
35 | 36 | ##main |
|
36 | 37 | <div class='sidebar-col-wrapper'> |
@@ -18,12 +18,12 b'' | |||
|
18 | 18 | ${self.menu_items(active='admin')} |
|
19 | 19 | </%def> |
|
20 | 20 | |
|
21 | <%def name="menu_bar_subnav()"> | |
|
22 | ${self.admin_menu(active='permissions')} | |
|
23 | </%def> | |
|
21 | 24 | |
|
22 | 25 | <%def name="main()"> |
|
23 | 26 | <div class="box"> |
|
24 | <div class="title"> | |
|
25 | ${self.admin_menu()} | |
|
26 | </div> | |
|
27 | 27 | |
|
28 | 28 | <div class="sidebar-col-wrapper scw-small"> |
|
29 | 29 | ##main |
@@ -17,10 +17,14 b'' | |||
|
17 | 17 | ${self.menu_items(active='admin')} |
|
18 | 18 | </%def> |
|
19 | 19 | |
|
20 | <%def name="menu_bar_subnav()"> | |
|
21 | ${self.admin_menu(active='repository_groups')} | |
|
22 | </%def> | |
|
23 | ||
|
20 | 24 | <%def name="main()"> |
|
21 | 25 | <div class="box"> |
|
22 | 26 | <div class="title"> |
|
23 | ${self.admin_menu()} | |
|
27 | ||
|
24 | 28 | <ul class="links"> |
|
25 | 29 | %if h.HasPermissionAny('hg.admin','hg.repogroup.create.true')(): |
|
26 | 30 | <li> |
@@ -17,10 +17,13 b'' | |||
|
17 | 17 | ${self.menu_items(active='admin')} |
|
18 | 18 | </%def> |
|
19 | 19 | |
|
20 | <%def name="menu_bar_subnav()"> | |
|
21 | ${self.admin_menu(active='repositories')} | |
|
22 | </%def> | |
|
23 | ||
|
20 | 24 | <%def name="main()"> |
|
21 | 25 | <div class="box"> |
|
22 | 26 | <div class="title"> |
|
23 | ${self.admin_menu()} | |
|
24 | 27 | <ul class="links"> |
|
25 | 28 | %if h.HasPermissionAny('hg.admin','hg.create.repository')(): |
|
26 | 29 | <li> |
@@ -13,11 +13,15 b'' | |||
|
13 | 13 | » |
|
14 | 14 | ${_('Settings')} |
|
15 | 15 | </%def> |
|
16 | ||
|
16 | ## | |
|
17 | 17 | <%def name="menu_bar_nav()"> |
|
18 | 18 | ${self.menu_items(active='admin')} |
|
19 | 19 | </%def> |
|
20 | 20 | |
|
21 | <%def name="menu_bar_subnav()"> | |
|
22 | ${self.admin_menu(active='settings')} | |
|
23 | </%def> | |
|
24 | ||
|
21 | 25 | <%def name="side_bar_nav()"> |
|
22 | 26 | % for navitem in c.navlist: |
|
23 | 27 | <li class="${'active' if c.active in navitem.active_list else ''}"> |
@@ -32,9 +36,6 b'' | |||
|
32 | 36 | |
|
33 | 37 | <%def name="main()"> |
|
34 | 38 | <div class="box"> |
|
35 | <div class="title"> | |
|
36 | ${self.admin_menu()} | |
|
37 | </div> | |
|
38 | 39 | |
|
39 | 40 | ##main |
|
40 | 41 | <div class='sidebar-col-wrapper'> |
@@ -17,11 +17,14 b'' | |||
|
17 | 17 | ${self.menu_items(active='admin')} |
|
18 | 18 | </%def> |
|
19 | 19 | |
|
20 | <%def name="menu_bar_subnav()"> | |
|
21 | ${self.admin_menu(active='user_groups')} | |
|
22 | </%def> | |
|
23 | ||
|
20 | 24 | <%def name="main()"> |
|
21 | 25 | <div class="box"> |
|
22 | 26 | |
|
23 | 27 | <div class="title"> |
|
24 | ${self.admin_menu()} | |
|
25 | 28 | <ul class="links"> |
|
26 | 29 | %if h.HasPermissionAny('hg.admin', 'hg.usergroup.create.true')(): |
|
27 | 30 | <li> |
@@ -17,12 +17,15 b'' | |||
|
17 | 17 | ${self.menu_items(active='admin')} |
|
18 | 18 | </%def> |
|
19 | 19 | |
|
20 | <%def name="menu_bar_subnav()"> | |
|
21 | ${self.admin_menu(active='users')} | |
|
22 | </%def> | |
|
23 | ||
|
20 | 24 | <%def name="main()"> |
|
21 | 25 | |
|
22 | 26 | <div class="box"> |
|
23 | 27 | |
|
24 | 28 | <div class="title"> |
|
25 | ${self.admin_menu()} | |
|
26 | 29 | <ul class="links"> |
|
27 | 30 | <li> |
|
28 | 31 | <a href="${h.route_path('users_new')}" class="btn btn-small btn-success">${_(u'Add User')}</a> |
@@ -74,41 +74,48 b'' | |||
|
74 | 74 | </div> |
|
75 | 75 | </%def> |
|
76 | 76 | |
|
77 | <%def name="admin_menu()"> | |
|
78 | ||
|
79 | <ul id="context-pages" class="navigation horizontal-list"> | |
|
77 | <%def name="admin_menu(active=None)"> | |
|
78 | <div id="context-bar"> | |
|
79 | <div class="wrapper"> | |
|
80 | <ul id="context-pages" class="navigation horizontal-list"> | |
|
80 | 81 | <% |
|
81 | 82 | repositories=c.rhodecode_user.repositories_admin |
|
82 | 83 | repository_groups=c.rhodecode_user.repository_groups_admin |
|
83 | 84 | user_groups=c.rhodecode_user.user_groups_admin or h.HasPermissionAny('hg.usergroup.create.true')() |
|
85 | def is_active(selected): | |
|
86 | if selected == active: | |
|
87 | return "active" | |
|
84 | 88 | %> |
|
85 | 89 | ## super admin case |
|
86 | 90 | % if c.rhodecode_user.is_admin: |
|
87 | <li><a href="${h.route_path('admin_audit_logs')}">${_('Admin audit logs')}</a></li> | |
|
88 | <li><a href="${h.route_path('repos')}">${_('Repositories')}</a></li> | |
|
89 | <li><a href="${h.route_path('repo_groups')}">${_('Repository groups')}</a></li> | |
|
90 | <li><a href="${h.route_path('users')}">${_('Users')}</a></li> | |
|
91 | <li><a href="${h.route_path('user_groups')}">${_('User groups')}</a></li> | |
|
92 | <li><a href="${h.route_path('admin_permissions_application')}">${_('Permissions')}</a></li> | |
|
93 | <li><a href="${h.route_path('auth_home', traverse='')}">${_('Authentication')}</a></li> | |
|
94 | <li><a href="${h.route_path('global_integrations_home')}">${_('Integrations')}</a></li> | |
|
95 | <li><a href="${h.route_path('admin_defaults_repositories')}">${_('Defaults')}</a></li> | |
|
96 | <li><a href="${h.route_path('admin_settings')}">${_('Settings')}</a></li> | |
|
91 | <li class="${is_active('audit_logs')}"><a href="${h.route_path('admin_audit_logs')}">${_('Admin audit logs')}</a></li> | |
|
92 | <li class="${is_active('repositories')}"><a href="${h.route_path('repos')}">${_('Repositories')}</a></li> | |
|
93 | <li class="${is_active('repository_groups')}"><a href="${h.route_path('repo_groups')}">${_('Repository groups')}</a></li> | |
|
94 | <li class="${is_active('users')}"><a href="${h.route_path('users')}">${_('Users')}</a></li> | |
|
95 | <li class="${is_active('user_groups')}"><a href="${h.route_path('user_groups')}">${_('User groups')}</a></li> | |
|
96 | <li class="${is_active('permissions')}"><a href="${h.route_path('admin_permissions_application')}">${_('Permissions')}</a></li> | |
|
97 | <li class="${is_active('authentication')}"><a href="${h.route_path('auth_home', traverse='')}">${_('Authentication')}</a></li> | |
|
98 | <li class="${is_active('integrations')}"><a href="${h.route_path('global_integrations_home')}">${_('Integrations')}</a></li> | |
|
99 | <li class="${is_active('defaults')}"><a href="${h.route_path('admin_defaults_repositories')}">${_('Defaults')}</a></li> | |
|
100 | <li class="${is_active('settings')}"><a href="${h.route_path('admin_settings')}">${_('Settings')}</a></li> | |
|
97 | 101 | |
|
98 | 102 | ## delegated admin |
|
99 | 103 | % elif repositories or repository_groups or user_groups: |
|
100 | 104 | |
|
101 | 105 | %if repositories: |
|
102 | <li class="local-admin-repos"><a href="${h.route_path('repos')}">${_('Repositories')}</a></li> | |
|
106 | <li class="${is_active('repositories')} local-admin-repos"><a href="${h.route_path('repos')}">${_('Repositories')}</a></li> | |
|
103 | 107 | %endif |
|
104 | 108 | %if repository_groups: |
|
105 | <li class="local-admin-repo-groups"><a href="${h.route_path('repo_groups')}">${_('Repository groups')}</a></li> | |
|
109 | <li class="${is_active('repository_groups')} local-admin-repo-groups"><a href="${h.route_path('repo_groups')}">${_('Repository groups')}</a></li> | |
|
106 | 110 | %endif |
|
107 | 111 | %if user_groups: |
|
108 | <li class="local-admin-user-groups"><a href="${h.route_path('user_groups')}">${_('User groups')}</a></li> | |
|
112 | <li class="${is_active('user_groups')} local-admin-user-groups"><a href="${h.route_path('user_groups')}">${_('User groups')}</a></li> | |
|
109 | 113 | %endif |
|
110 | 114 | % endif |
|
111 | 115 | </ul> |
|
116 | </div> | |
|
117 | <div class="clear"></div> | |
|
118 | </div> | |
|
112 | 119 | </%def> |
|
113 | 120 | |
|
114 | 121 | |
@@ -232,7 +239,7 b'' | |||
|
232 | 239 | return "active" |
|
233 | 240 | %> |
|
234 | 241 | |
|
235 | <!--- CONTEXT BAR --> | |
|
242 | <!--- REPO CONTEXT BAR --> | |
|
236 | 243 | <div id="context-bar"> |
|
237 | 244 | <div class="wrapper"> |
|
238 | 245 | |
@@ -306,7 +313,7 b'' | |||
|
306 | 313 | <strong>${_('This repository has been archived. It is now read-only.')}</strong> |
|
307 | 314 | </div> |
|
308 | 315 | % endif |
|
309 | <!--- END CONTEXT BAR --> | |
|
316 | <!--- REPO END CONTEXT BAR --> | |
|
310 | 317 | |
|
311 | 318 | </%def> |
|
312 | 319 | |
@@ -344,7 +351,7 b'' | |||
|
344 | 351 | |
|
345 | 352 | %> |
|
346 | 353 | |
|
347 | <!--- CONTEXT BAR --> | |
|
354 | <!--- REPO GROUP CONTEXT BAR --> | |
|
348 | 355 | <div id="context-bar"> |
|
349 | 356 | <div class="wrapper"> |
|
350 | 357 | <ul id="context-pages" class="navigation horizontal-list"> |
@@ -371,7 +378,7 b'' | |||
|
371 | 378 | <div class="clear"></div> |
|
372 | 379 | </div> |
|
373 | 380 | |
|
374 |
<!--- |
|
|
381 | <!--- REPO GROUP CONTEXT BAR --> | |
|
375 | 382 | |
|
376 | 383 | </%def> |
|
377 | 384 |
General Comments 0
You need to be logged in to leave comments.
Login now