From 783c21a8fd7185f8e2d8c63880a616dba7a95ccb Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 2 Apr 2010 10:11:55 +0000 Subject: bug 1550: add a default message when there is no new plugin/theme/language available. git-svn-id: http://piwigo.org/svn/trunk@5570 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/languages_new.tpl | 4 +++- admin/themes/default/template/plugins_new.tpl | 6 +++++- admin/themes/default/template/themes_new.tpl | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/languages_new.tpl b/admin/themes/default/template/languages_new.tpl index 6681907a1..9b66e1724 100644 --- a/admin/themes/default/template/languages_new.tpl +++ b/admin/themes/default/template/languages_new.tpl @@ -37,4 +37,6 @@ jQuery().ready(function(){ldelim} {/foreach} -{/if} \ No newline at end of file +{else} +

{'There is no other language available.'|@translate}

+{/if} diff --git a/admin/themes/default/template/plugins_new.tpl b/admin/themes/default/template/plugins_new.tpl index 810bc6b34..1c3f50d22 100644 --- a/admin/themes/default/template/plugins_new.tpl +++ b/admin/themes/default/template/plugins_new.tpl @@ -29,6 +29,7 @@ jQuery().ready(function(){ldelim}

{'Plugins'|@translate}

+{if not empty($plugins)}
{foreach from=$plugins item=plugin name=plugins_loop} @@ -64,4 +65,7 @@ jQuery().ready(function(){ldelim} {/foreach} -
\ No newline at end of file + +{else} +

{'There is no other plugin available.'|@translate}

+{/if} \ No newline at end of file diff --git a/admin/themes/default/template/themes_new.tpl b/admin/themes/default/template/themes_new.tpl index 4c58fce9e..7965cc0d4 100644 --- a/admin/themes/default/template/themes_new.tpl +++ b/admin/themes/default/template/themes_new.tpl @@ -2,7 +2,7 @@

{'Add New Theme'|@translate}

-{if isset($themes)} +{if not empty($new_themes)}
{foreach from=$new_themes item=theme name=themes_loop}
@@ -12,4 +12,6 @@
{/foreach}
+{else} +

{'There is no other theme available.'|@translate}

{/if} \ No newline at end of file -- cgit v1.2.3