auth-plugins: indicate activate and not-enabled plugin with gre6;
This commit is contained in:
parent
25495a0aaa
commit
4ddceb802a
2 changed files with 6 additions and 4 deletions
|
|
@ -64,7 +64,9 @@ table.dataTable {
|
|||
.expired td {
|
||||
background-color: @grey7;
|
||||
}
|
||||
|
||||
.inactive td {
|
||||
background-color: @grey6;
|
||||
}
|
||||
th {
|
||||
text-align: left;
|
||||
font-weight: @text-semibold-weight;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
<th>${_('Plugin ID')}</th>
|
||||
<th>${_('Enabled')}</th>
|
||||
%for plugin in available_plugins:
|
||||
<tr>
|
||||
<tr class="${'inactive' if (not plugin.is_active() and plugin.get_id() in enabled_plugins) else ''}">
|
||||
<td>
|
||||
<span plugin_id="${plugin.get_id()}" class="toggle-plugin btn ${'btn-success' if plugin.get_id() in enabled_plugins else ''}">
|
||||
${_('activated') if plugin.get_id() in enabled_plugins else _('not active')}
|
||||
|
|
@ -114,8 +114,8 @@
|
|||
cur_button.innerHTML = _gettext('not active');
|
||||
}
|
||||
else{
|
||||
if(elems.indexOf(plugin_id) == -1){
|
||||
elems.push(plugin_id);
|
||||
if (elems.indexOf(plugin_id) === -1) {
|
||||
elems.push(plugin_id);
|
||||
}
|
||||
auth_plugins_input.val(elems.join(',\n'));
|
||||
$(cur_button).addClass('btn-success');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue