From 9bdf825a947ea4758b1f86100c05f62582edc0a6 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Tue, 25 Nov 2008 09:15:45 +0000
Subject: Add a "Access" tab to the scaffolding and list users and groups.
Refactor welcome.php a little bit to make index() more readable.
---
core/views/welcome.html.php | 90 ++++++++++++++++++++++++++++++++++++---------
1 file changed, 72 insertions(+), 18 deletions(-)
(limited to 'core/views')
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php
index 7b34927f..0eca24fc 100644
--- a/core/views/welcome.html.php
+++ b/core/views/welcome.html.php
@@ -70,26 +70,37 @@
display: none;
}
- ul#tabs {
+ ul.tabs {
margin-left: 0;
padding: 1em 0 2px 1em;
white-space: nowrap;
border-bottom: 1px solid black;
}
- ul#tabs li {
+ ul.tabs li {
display: inline;
list-style-type: none;
}
- ul#tabs a {
+ ul.tabs a {
padding: 3px 10px;
color: #fff;
background-color: #036;
text-decoration: none;
}
- ul#tabs a:hover {
+ div#access {
+ margin-top: -20px;
+ padding: 0px;
+ padding-left: 20px;
+ }
+
+ div#access ul.tabs a {
+ background-color: #830;
+ border: 1px solid white;
+ }
+
+ ul.tabs a:hover {
background-color: #369;
}
@@ -108,7 +119,6 @@
tr.core td {
border-bottom: 1px solid black;
-
}
a {
@@ -141,9 +151,10 @@
meantime, here are some useful links to get you started.
-
+
- Configuration
- Actions
+ - Access
- Info
- Benchmarks
- Docs
@@ -151,21 +162,34 @@
@@ -218,6 +242,36 @@
+
+
+
+
+
+ foreach ($users as $user): ?>
+ - = $user->name ?>
+ endforeach ?>
+
+
+
+
+
+ foreach ($groups as $group): ?>
+ - = $group->name ?>
+ endforeach ?>
+
+
+
+
+
+
- = html::anchor("welcome/mptt?type=text", "MPTT tree (text)") ?>
--
cgit v1.2.3