##// END OF EJS Templates
auth: fixed missing upper context navigation in plugin view
marcink -
r3584:ed59d605 new-ui
parent child Browse files
Show More
@@ -31,7 +31,7 b''
31 <div class="sidebar">
31 <div class="sidebar">
32 <ul class="nav nav-pills nav-stacked">
32 <ul class="nav nav-pills nav-stacked">
33 % for item in resource.get_root().get_nav_list():
33 % for item in resource.get_root().get_nav_list():
34 <li ${'class=active' if item == resource else ''}>
34 <li ${('class=active' if item == resource else '')}>
35 <a href="${request.resource_path(item, route_name='auth_home')}">${item.display_name}</a>
35 <a href="${request.resource_path(item, route_name='auth_home')}">${item.display_name}</a>
36 </li>
36 </li>
37 % endfor
37 % endfor
@@ -67,10 +67,10 b''
67 <th>${_('Plugin ID')}</th>
67 <th>${_('Plugin ID')}</th>
68 <th>${_('Enabled')}</th>
68 <th>${_('Enabled')}</th>
69 %for plugin in available_plugins:
69 %for plugin in available_plugins:
70 <tr class="${'inactive' if (not plugin.is_active() and plugin.get_id() in enabled_plugins) else ''}">
70 <tr class="${('inactive' if (not plugin.is_active() and plugin.get_id() in enabled_plugins) else '')}">
71 <td>
71 <td>
72 <span plugin_id="${plugin.get_id()}" class="toggle-plugin btn ${'btn-success' if plugin.get_id() in enabled_plugins else ''}">
72 <span plugin_id="${plugin.get_id()}" class="toggle-plugin btn ${('btn-success' if plugin.get_id() in enabled_plugins else '')}">
73 ${_('activated') if plugin.get_id() in enabled_plugins else _('not active')}
73 ${(_('activated') if plugin.get_id() in enabled_plugins else _('not active'))}
74 </span>
74 </span>
75 </td>
75 </td>
76 <td>${plugin.get_display_name()}</td>
76 <td>${plugin.get_display_name()}</td>
@@ -2,10 +2,10 b''
2 <%inherit file="/base/base.mako"/>
2 <%inherit file="/base/base.mako"/>
3
3
4 <%def name="title()">
4 <%def name="title()">
5 ${_('Authentication Settings')}
5 ${_('Authentication Settings')}
6 %if c.rhodecode_name:
6 %if c.rhodecode_name:
7 &middot; ${h.branding(c.rhodecode_name)}}
7 &middot; ${h.branding(c.rhodecode_name)}}
8 %endif
8 %endif
9 </%def>
9 </%def>
10
10
11 <%def name="breadcrumbs_links()">
11 <%def name="breadcrumbs_links()">
@@ -17,22 +17,23 b''
17 </%def>
17 </%def>
18
18
19 <%def name="menu_bar_nav()">
19 <%def name="menu_bar_nav()">
20 ${self.menu_items(active='admin')}
20 ${self.menu_items(active='admin')}
21 </%def>
22
23 <%def name="menu_bar_subnav()">
24 ${self.admin_menu(active='authentication')}
21 </%def>
25 </%def>
22
26
23 <%def name="main()">
27 <%def name="main()">
28
24 <div class="box">
29 <div class="box">
25 <div class="title">
30
26 ${self.breadcrumbs()}
27 </div>
28 <div class='sidebar-col-wrapper'>
31 <div class='sidebar-col-wrapper'>
29
32
30 ## TODO: This is repeated in the auth root template and should be merged
31 ## into a single solution.
32 <div class="sidebar">
33 <div class="sidebar">
33 <ul class="nav nav-pills nav-stacked">
34 <ul class="nav nav-pills nav-stacked">
34 % for item in resource.get_root().get_nav_list():
35 % for item in resource.get_root().get_nav_list():
35 <li ${'class=active' if item == resource else ''}>
36 <li ${('class=active' if item == resource else '')}>
36 <a href="${request.resource_path(item, route_name='auth_home')}">${item.display_name}</a>
37 <a href="${request.resource_path(item, route_name='auth_home')}">${item.display_name}</a>
37 </li>
38 </li>
38 % endfor
39 % endfor
General Comments 0
You need to be logged in to leave comments. Login now