From effb4d9de0dff2f68e65e9fabe4c9d4e18b68fe6 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 4 Jun 2011 09:34:59 +0000 Subject: 'Deactivate all' link now visible if all plugins are active git-svn-id: http://piwigo.org/svn/trunk@11227 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../themes/default/template/plugins_installed.tpl | 25 ++++++++++++++-------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'admin/themes') diff --git a/admin/themes/default/template/plugins_installed.tpl b/admin/themes/default/template/plugins_installed.tpl index 036a568ef..5e3b451db 100644 --- a/admin/themes/default/template/plugins_installed.tpl +++ b/admin/themes/default/template/plugins_installed.tpl @@ -102,12 +102,12 @@ jQuery(document).ready(function() { {if isset($plugins)} -{assign var='field_name' value='null'} +{assign var='field_name' value='null'} {* *} +{counter start=0 assign=i} {* *} {foreach from=$plugins item=plugin name=plugins_loop} {if $field_name != $plugin.STATE} {if $field_name != 'null'} - {if $field_name == 'active'}
{'Deactivate all'|@translate}
{/if} {/if} @@ -125,6 +125,8 @@ jQuery(document).ready(function() { {assign var='field_name' value=$plugin.STATE} {/if} + + {if $plugin.STATE == 'active'}{counter}{/if} {if not empty($plugin.AUTHOR)} {if not empty($plugin.AUTHOR_URL)} @@ -147,14 +149,14 @@ jQuery(document).ready(function() { {if $plugin.STATE == 'active'} {'Deactivate'|@translate} - | {'Restore'|@translate} + | {'Restore'|@translate} {elseif $plugin.STATE == 'inactive'} {'Activate'|@translate} - | {'Delete'|@translate} + | {'Delete'|@translate} {elseif $plugin.STATE == 'missing'} - {'Uninstall'|@translate} + {'Uninstall'|@translate} {elseif $plugin.STATE == 'merged'} {'Delete'|@translate} @@ -178,7 +180,7 @@ jQuery(document).ready(function() { {elseif $plugin_display == 'compact'} {if not empty($plugin.VISIT_URL)} {assign var='version' value=""|cat:$plugin.VERSION|cat:""} - {else + {else} {assign var='version' value=$plugin.VERSION} {/if} @@ -191,14 +193,14 @@ jQuery(document).ready(function() {
{if $plugin.STATE == 'active'} {'Deactivate'|@translate} - | {'Restore'|@translate} + | {'Restore'|@translate} {elseif $plugin.STATE == 'inactive'} {'Activate'|@translate} - | {'Delete'|@translate} + | {'Delete'|@translate} {elseif $plugin.STATE == 'missing'} - {'Uninstall'|@translate} + {'Uninstall'|@translate} {elseif $plugin.STATE == 'merged'} {'Delete'|@translate} @@ -209,6 +211,11 @@ jQuery(document).ready(function() { {/if} + {if $active_plugins == $i} + + {counter} + {/if} + {/foreach} -- cgit v1.2.3