summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-31 23:58:53 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-31 23:58:53 +0000
commit3352ae6d10af6a0219f87f999804bdcaa8689e7f (patch)
tree14995babbbe46f431ba237dcefaa5df70c6991f8
parent4573ada534720a44109e200172e48207140d5865 (diff)
Move 'browse' link above the fold, hide tabs that are inappropriate when there's no install yet
-rw-r--r--core/views/welcome.html.php23
1 files changed, 19 insertions, 4 deletions
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php
index 51d00e82..09a3744a 100644
--- a/core/views/welcome.html.php
+++ b/core/views/welcome.html.php
@@ -152,6 +152,14 @@
.gHide {
display: none;
}
+
+ div#browse {
+ border: 1px solid black;
+ background: #eee;
+ width: 450px;
+ padding: 2px;
+ margin: 5px 0px 0px 1em;
+ }
</style>
<?= html::script("lib/jquery.js") ?>
<?= html::script("lib/jquery.form.js") ?>
@@ -179,8 +187,18 @@
meantime, here are some useful links to get you started.
</p>
+ <? if ($album_count > 0): ?>
+ <div id="browse">
+ <p>
+ <?= html::anchor("albums/1", "Browse Gallery") ?>
+ <i>(<?= $album_count ?> albums, <?= $photo_count ?> photos, <?= $comment_count ?> comments, <?= $tag_count ?> tags)</i>
+ </p>
+ </div>
+ <? endif ?>
+
<ul class="tabs">
<li><a href="javascript:show('config')">Configuration</a></li>
+ <? if ($album_count > 0): ?>
<li><a href="javascript:show('actions')">Actions</a></li>
<? if (module::is_installed("user")): ?>
<li><a href="javascript:show('access')">Access</a></li>
@@ -188,6 +206,7 @@
<li><a href="javascript:show('info')">Info</a></li>
<li><a href="javascript:show('benchmarks')">Benchmarks</a></li>
<li><a href="javascript:show('docs')">Docs</a></li>
+ <? endif ?>
</ul>
<div id="activities">
@@ -230,10 +249,6 @@
<div id="actions" class="activity">
<p>
- <?= html::anchor("albums/1", "Browse Gallery") ?>
- <i>(<?= $album_count ?> albums, <?= $photo_count ?> photos, <?= $comment_count ?> comments, <?= $tag_count ?> tags)</i>
- </p>
- <p>
add: [
<? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
<?= html::anchor("welcome/add_albums_and_photos/$count", "$count") ?>