diff options
author | plegall <plg@piwigo.org> | 2010-03-26 14:16:54 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-26 14:16:54 +0000 |
commit | b8a9773caf30db55f52e9562166054b0917dc990 (patch) | |
tree | d1967565dab6d621f066923dea03135eed9a0c86 /admin/themes/default/template/themes_installed.tpl | |
parent | 6d006303328909b111a9db1ac4199f0a993adb8b (diff) |
feature 1514: make the "deactivate" action inactive if there is no active
theme left.
bug fixed: when setting the default theme, make sure at least one user will
be updated.
git-svn-id: http://piwigo.org/svn/trunk@5382 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/themes_installed.tpl')
-rw-r--r-- | admin/themes/default/template/themes_installed.tpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/themes/default/template/themes_installed.tpl b/admin/themes/default/template/themes_installed.tpl index 28d4df66a..5bb18ae57 100644 --- a/admin/themes/default/template/themes_installed.tpl +++ b/admin/themes/default/template/themes_installed.tpl @@ -13,7 +13,13 @@ <div class="themeName">{$theme.name}{if $theme.is_default} <em>({'default'|@translate})</em>{/if}</div> <div class="themeShot"><img src="{$theme.screenshot}"></div> <div class="themeActions"> + +{if $theme.deactivable} <a href="{$deactivate_baseurl}{$theme.id}" title="{'Forbid this theme to users'|@translate}">{'Deactivate'|@translate}</a> +{else} + <span title="{$theme.deactivate_tooltip}">{'Deactivate'|@translate}</span> +{/if} + {if not $theme.is_default} | <a href="{$set_default_baseurl}{$theme.id}" title="{'Set as default theme for unregistered and new users'|@translate}">{'Default'|@translate}</a> {/if} |