Show More
@@ -31,7 +31,7 b'' | |||
|
31 | 31 | <div class="sidebar"> |
|
32 | 32 | <ul class="nav nav-pills nav-stacked"> |
|
33 | 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 | 35 | <a href="${request.resource_path(item, route_name='auth_home')}">${item.display_name}</a> |
|
36 | 36 | </li> |
|
37 | 37 | % endfor |
@@ -67,10 +67,10 b'' | |||
|
67 | 67 | <th>${_('Plugin ID')}</th> |
|
68 | 68 | <th>${_('Enabled')}</th> |
|
69 | 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 | 71 | <td> |
|
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')} | |
|
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'))} | |
|
74 | 74 | </span> |
|
75 | 75 | </td> |
|
76 | 76 | <td>${plugin.get_display_name()}</td> |
@@ -20,19 +20,20 b'' | |||
|
20 | 20 | ${self.menu_items(active='admin')} |
|
21 | 21 | </%def> |
|
22 | 22 | |
|
23 | <%def name="menu_bar_subnav()"> | |
|
24 | ${self.admin_menu(active='authentication')} | |
|
25 | </%def> | |
|
26 | ||
|
23 | 27 | <%def name="main()"> |
|
28 | ||
|
24 | 29 | <div class="box"> |
|
25 | <div class="title"> | |
|
26 | ${self.breadcrumbs()} | |
|
27 | </div> | |
|
30 | ||
|
28 | 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 | 33 | <div class="sidebar"> |
|
33 | 34 | <ul class="nav nav-pills nav-stacked"> |
|
34 | 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 | 37 | <a href="${request.resource_path(item, route_name='auth_home')}">${item.display_name}</a> |
|
37 | 38 | </li> |
|
38 | 39 | % endfor |
General Comments 0
You need to be logged in to leave comments.
Login now