##// END OF EJS Templates
auth-plugins: indicate activate and not-enabled plugin with gre6;
marcink -
r3285:1b64f905 default
parent child Browse files
Show More
@@ -64,7 +64,9 b' table.dataTable {'
64 .expired td {
64 .expired td {
65 background-color: @grey7;
65 background-color: @grey7;
66 }
66 }
67
67 .inactive td {
68 background-color: @grey6;
69 }
68 th {
70 th {
69 text-align: left;
71 text-align: left;
70 font-weight: @text-semibold-weight;
72 font-weight: @text-semibold-weight;
@@ -66,7 +66,7 b''
66 <th>${_('Plugin ID')}</th>
66 <th>${_('Plugin ID')}</th>
67 <th>${_('Enabled')}</th>
67 <th>${_('Enabled')}</th>
68 %for plugin in available_plugins:
68 %for plugin in available_plugins:
69 <tr>
69 <tr class="${'inactive' if (not plugin.is_active() and plugin.get_id() in enabled_plugins) else ''}">
70 <td>
70 <td>
71 <span plugin_id="${plugin.get_id()}" class="toggle-plugin btn ${'btn-success' if plugin.get_id() in enabled_plugins else ''}">
71 <span plugin_id="${plugin.get_id()}" class="toggle-plugin btn ${'btn-success' if plugin.get_id() in enabled_plugins else ''}">
72 ${_('activated') if plugin.get_id() in enabled_plugins else _('not active')}
72 ${_('activated') if plugin.get_id() in enabled_plugins else _('not active')}
@@ -114,7 +114,7 b''
114 cur_button.innerHTML = _gettext('not active');
114 cur_button.innerHTML = _gettext('not active');
115 }
115 }
116 else{
116 else{
117 if(elems.indexOf(plugin_id) == -1){
117 if (elems.indexOf(plugin_id) === -1) {
118 elems.push(plugin_id);
118 elems.push(plugin_id);
119 }
119 }
120 auth_plugins_input.val(elems.join(',\n'));
120 auth_plugins_input.val(elems.join(',\n'));
General Comments 0
You need to be logged in to leave comments. Login now