From 3352ae6d10af6a0219f87f999804bdcaa8689e7f Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Wed, 31 Dec 2008 23:58:53 +0000
Subject: Move 'browse' link above the fold, hide tabs that are inappropriate
when there's no install yet
---
core/views/welcome.html.php | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
(limited to 'core')
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;
+ }
= 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.
+ if ($album_count > 0): ?>
+
+
+ = html::anchor("albums/1", "Browse Gallery") ?>
+ (= $album_count ?> albums, = $photo_count ?> photos, = $comment_count ?> comments, = $tag_count ?> tags)
+
+
+ endif ?>
+
@@ -229,10 +248,6 @@
-
- = html::anchor("albums/1", "Browse Gallery") ?>
- (= $album_count ?> albums, = $photo_count ?> photos, = $comment_count ?> comments, = $tag_count ?> tags)
-
add: [
foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
--
cgit v1.2.3