mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 00:23:40 +02:00
related #1245 displaying the activated plugin list in environnement section
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
$(document).ready(function () {
|
||||
jQuery.ajax({
|
||||
url: "ws.php?format=json&method=pwg.plugins.getList",
|
||||
type: "GET",
|
||||
dataType: "JSON",
|
||||
success: function(data) {
|
||||
plugins = data.result;
|
||||
plugins.forEach(plugin => {
|
||||
if (plugin.state == "active") {
|
||||
$("#pluginList ul").append("<li>" + plugin.name +"</li>");
|
||||
$("#pluginList ul i").hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
@@ -1,4 +1,7 @@
|
||||
{combine_script id='ajax' load='footer' path='admin/themes/default/js/maintenance.js'}
|
||||
{combine_script id='activated_plugin_list' load='footer' path='admin/themes/default/js/maintenance_env.js'}
|
||||
{combine_css path="admin/themes/default/fontello/css/animation.css" order=10}
|
||||
{* order 10 is required, see issue 1080 *}
|
||||
{footer_script}
|
||||
const no_time_elapsed = "{"right now"|@translate}";
|
||||
{/footer_script}
|
||||
@@ -29,6 +32,13 @@ const no_time_elapsed = "{"right now"|@translate}";
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="pluginList">
|
||||
<legend><span class="icon-puzzle icon-green"></span> {'Activated plugin list'|@translate}</legend>
|
||||
<ul style="font-weight:bold">
|
||||
<i class="icon-spin6 animate-spin"></i>
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
<style>
|
||||
|
||||
.cache-size-value {
|
||||
|
||||
@@ -1231,4 +1231,5 @@ $lang['Restored'] = 'Restored';
|
||||
$lang['right now'] = 'right now';
|
||||
$lang['never calculated'] = 'never calculated';
|
||||
$lang['Filters'] = 'Filters';
|
||||
$lang['Synchronization settings'] = 'Synchronization settings';
|
||||
$lang['Synchronization settings'] = 'Synchronization settings';
|
||||
$lang['Activated plugin list'] = 'Activated plugin list';
|
||||
|
||||
@@ -1233,4 +1233,5 @@ $lang['Restored'] = 'Restoré';
|
||||
$lang['right now'] = 'à l\'instant';
|
||||
$lang['never calculated'] = 'jamais calculé';
|
||||
$lang['Filters'] = 'Filtres';
|
||||
$lang['Synchronization settings'] = 'Paramètres de synchronisation';
|
||||
$lang['Synchronization settings'] = 'Paramètres de synchronisation';
|
||||
$lang['Activated plugin list'] = 'Liste des plugins activés';
|
||||
|
||||
Reference in New Issue
Block a user