aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-02 10:11:55 +0000
committerplegall <plg@piwigo.org>2010-04-02 10:11:55 +0000
commit783c21a8fd7185f8e2d8c63880a616dba7a95ccb (patch)
tree5c9a60b9bac721f3b273e059ed2c09bb944a2a16 /admin/themes/default
parentb4cee39043cf287f51c25d4a42d18357045274cd (diff)
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
Diffstat (limited to 'admin/themes/default')
-rw-r--r--admin/themes/default/template/languages_new.tpl4
-rw-r--r--admin/themes/default/template/plugins_new.tpl6
-rw-r--r--admin/themes/default/template/themes_new.tpl4
3 files changed, 11 insertions, 3 deletions
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}
</tr>
{/foreach}
</table>
-{/if} \ No newline at end of file
+{else}
+<p>{'There is no other language available.'|@translate}</p>
+{/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}
<h2>{'Plugins'|@translate}</h2>
</div>
+{if not empty($plugins)}
<fieldset>
<legend></legend>
{foreach from=$plugins item=plugin name=plugins_loop}
@@ -64,4 +65,7 @@ jQuery().ready(function(){ldelim}
</table>
</div>
{/foreach}
-</fieldset> \ No newline at end of file
+</fieldset>
+{else}
+<p>{'There is no other plugin available.'|@translate}</p>
+{/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 @@
<h2>{'Add New Theme'|@translate}</h2>
</div>
-{if isset($themes)}
+{if not empty($new_themes)}
<div class="themeBoxes">
{foreach from=$new_themes item=theme name=themes_loop}
<div class="themeBox">
@@ -12,4 +12,6 @@
</div>
{/foreach}
</div> <!-- themeBoxes -->
+{else}
+<p>{'There is no other theme available.'|@translate}</p>
{/if} \ No newline at end of file