summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-13 10:57:38 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-13 10:57:38 +0000
commit38ddf559f0f52095c50710268a9890199b73e648 (patch)
tree263060510926abf41f4e482fb98938eaa76c2015
parent35a529cd86a453b8d46ef9933b12e95021926dba (diff)
Put up a nice message if there are no other themes available to
choose.
-rw-r--r--core/views/admin_themes.html.php16
-rw-r--r--themes/admin_default/css/screen.css1
2 files changed, 17 insertions, 0 deletions
diff --git a/core/views/admin_themes.html.php b/core/views/admin_themes.html.php
index e9266831..b662ea5f 100644
--- a/core/views/admin_themes.html.php
+++ b/core/views/admin_themes.html.php
@@ -26,6 +26,7 @@
<h2> <?= t("Available site themes") ?> </h2>
<div id="gAvailableSiteThemes">
+ <? $count = 0 ?>
<? foreach ($themes as $id => $info): ?>
<? if (!$info->site) continue ?>
<? if ($id == $site) continue ?>
@@ -39,7 +40,14 @@
</p>
</a>
</div>
+ <? $count++ ?>
<? endforeach ?>
+
+ <? if (!$count): ?>
+ <p>
+ <?= t("There are no other site themes available.") ?>
+ </p>
+ <? endif ?>
</div>
</div>
@@ -56,6 +64,7 @@
<h2> <?= t("Available admin themes") ?> </h2>
<div id="gAvailableAdminThemes">
+ <? $count = 0 ?>
<? foreach ($themes as $id => $info): ?>
<? if (!$info->admin) continue ?>
<? if ($id == $admin) continue ?>
@@ -69,7 +78,14 @@
</p>
</a>
</div>
+ <? $count++ ?>
<? endforeach ?>
+
+ <? if (!$count): ?>
+ <p>
+ <?= t("There are no other admin themes available.") ?>
+ </p>
+ <? endif ?>
</div>
</div>
</div>
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css
index ce5f471e..674c90b2 100644
--- a/themes/admin_default/css/screen.css
+++ b/themes/admin_default/css/screen.css
@@ -168,6 +168,7 @@
#gAdminThemes .selected {
background: #cfc !important;
+ cursor: default !important;
}
#gAdminThemes .gBlock {