From ece7db113a056da232dddc4e8c97fc6d22f09546 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 8 Nov 2017 19:06:38 +0100 Subject: Improve messages if there is no plugin or parameter available in the admin page Fixes #931 --- tpl/default/pluginsadmin.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'tpl/default') diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html index 717cb517..ca17b435 100644 --- a/tpl/default/pluginsadmin.html +++ b/tpl/default/pluginsadmin.html @@ -27,7 +27,7 @@
{if="count($enabledPlugins)==0"} -

{'No plugin enabled.'|t}

+

{'No plugin enabled.'|t}

{else} @@ -77,7 +77,7 @@
{if="count($disabledPlugins)==0"} -

{'No plugin disabled.'|t}

+

{'No plugin disabled.'|t}

{else}
@@ -135,9 +135,11 @@
{if="count($enabledPlugins)==0"} -

{'No plugin enabled.'|t}

+

{'No plugin enabled.'|t}

{else} + {$counter=0} {loop="$enabledPlugins"} + {$counter=$counter+count($value.parameters)} {if="count($value.parameters) > 0"}

{function="str_replace('_', ' ', $key)"}

@@ -159,10 +161,14 @@
{/if} {/loop} + {if="$counter===0"} +

{'No parameter available.'|t}

+ {else} +
+ +
+ {/if} {/if} -
- -
-- cgit v1.2.3