From 0dd800150b5e8aaeb229f45779c590db0658b1e9 Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 6 Apr 2011 09:43:46 +0000 Subject: feature:2250 Incompatible plugins and obsolete plugins may not be activated. git-svn-id: http://piwigo.org/svn/trunk@10098 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/plugins_list.tpl | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/plugins_list.tpl b/admin/themes/default/template/plugins_list.tpl index d6a8364ee..c1a3a3696 100644 --- a/admin/themes/default/template/plugins_list.tpl +++ b/admin/themes/default/template/plugins_list.tpl @@ -1,3 +1,16 @@ +{footer_script} +var incompatible_msg = '{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'javascript'}'; +incompatible_msg += '\n'; +incompatible_msg += '{'Do you want to activate anyway?'|@translate|@escape:'javascript'}'; + +{literal} +jQuery(document).ready(function() { + jQuery('.incompatible').click(function() { + return confirm(incompatible_msg); + }); +}); +{/literal}{/footer_script} +

{'Plugins'|@translate}

@@ -19,6 +32,9 @@ {elseif $plugin_state == 'missing'} {'Missing Plugins'|@translate} + {elseif $plugin_state == 'merged'} + {'Obsolete Plugins'|@translate} + {/if} {foreach from=$plugins item=plugin name=plugins_loop} @@ -35,14 +51,14 @@ {'Deactivate'|@translate} {elseif $plugin_state == 'inactive'} - {'Activate'|@translate} + {'Activate'|@translate} | {'Uninstall'|@translate} {elseif $plugin_state == 'uninstalled'} {'Install'|@translate} | {'Delete'|@translate} - {elseif $plugin_state == 'missing'} + {elseif $plugin_state == 'missing' or $plugin_state == 'merged'} {'Uninstall'|@translate} {/if} -- cgit v1.2.3