##// END OF EJS Templates
auth-plugin: show if plugin is activated and enabled in the list....
marcink -
r3269:4a18ba48 default
parent child Browse files
Show More
@@ -48,7 +48,7 b''
48 <div class="panel-body">
48 <div class="panel-body">
49
49
50
50
51 <div class="label">${_("Ordered Enabled Plugins")}</div>
51 <div class="label">${_("Ordered Activated Plugins")}</div>
52 <div class="textarea text-area editor">
52 <div class="textarea text-area editor">
53 ${h.textarea('auth_plugins',cols=120,rows=20,class_="medium")}
53 ${h.textarea('auth_plugins',cols=120,rows=20,class_="medium")}
54 </div>
54 </div>
@@ -64,11 +64,12 b''
64 <th>${_('Plugin Name')}</th>
64 <th>${_('Plugin Name')}</th>
65 <th>${_('Documentation')}</th>
65 <th>${_('Documentation')}</th>
66 <th>${_('Plugin ID')}</th>
66 <th>${_('Plugin ID')}</th>
67 <th>${_('Enabled')}</th>
67 %for plugin in available_plugins:
68 %for plugin in available_plugins:
68 <tr>
69 <tr>
69 <td>
70 <td>
70 <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 ''}">
71 ${_('enabled') if plugin.get_id() in enabled_plugins else _('disabled')}
72 ${_('activated') if plugin.get_id() in enabled_plugins else _('not active')}
72 </span>
73 </span>
73 </td>
74 </td>
74 <td>${plugin.get_display_name()}</td>
75 <td>${plugin.get_display_name()}</td>
@@ -78,6 +79,7 b''
78 % endif
79 % endif
79 </td>
80 </td>
80 <td>${plugin.get_id()}</td>
81 <td>${plugin.get_id()}</td>
82 <td>${plugin.is_active()}</td>
81 </tr>
83 </tr>
82 %endfor
84 %endfor
83 </table>
85 </table>
@@ -109,7 +111,7 b''
109 elems.splice(elems.indexOf(plugin_id), 1);
111 elems.splice(elems.indexOf(plugin_id), 1);
110 auth_plugins_input.val(elems.join(',\n'));
112 auth_plugins_input.val(elems.join(',\n'));
111 $(cur_button).removeClass('btn-success');
113 $(cur_button).removeClass('btn-success');
112 cur_button.innerHTML = _gettext('disabled');
114 cur_button.innerHTML = _gettext('not active');
113 }
115 }
114 else{
116 else{
115 if(elems.indexOf(plugin_id) == -1){
117 if(elems.indexOf(plugin_id) == -1){
@@ -117,7 +119,7 b''
117 }
119 }
118 auth_plugins_input.val(elems.join(',\n'));
120 auth_plugins_input.val(elems.join(',\n'));
119 $(cur_button).addClass('btn-success');
121 $(cur_button).addClass('btn-success');
120 cur_button.innerHTML = _gettext('enabled');
122 cur_button.innerHTML = _gettext('activated');
121 }
123 }
122 });
124 });
123 </script>
125 </script>
General Comments 0
You need to be logged in to leave comments. Login now