From 4271f7702a2754d8470949209f2db82990eb2d1a Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Sat, 29 Nov 2008 22:47:15 +0000
Subject: Add access model (not fully baked yet). Update scaffolding to allow
addition of just albums (helpful for testing permissions)
---
core/views/welcome.html.php | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'core/views')
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php
index 5e683690..61c87c8b 100644
--- a/core/views/welcome.html.php
+++ b/core/views/welcome.html.php
@@ -211,6 +211,13 @@
endforeach ?>
] photos and albums
+
+ add: [
+ foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
+ = html::anchor("welcome/add_albums_and_photos/$count/album", "$count") ?>
+ endforeach ?>
+ ] albums only
+
add: [
foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?>
@@ -328,6 +335,14 @@
-
= html::anchor("albums/{$current->album->id}", $current->album->title) ?>
+ foreach (ORM::factory("item")->list_fields("items") as $field => $info): ?>
+ if (!strncmp($field, "view_", 5)): ?>
+ [= $field ?>== $current->album->$field ?>]
+ endif ?>
+ endforeach ?>
+ foreach (ORM::factory("access")->where("item_id", $current->album->id)->find() as $access): ?>
+ [ = $access->id ?> ]
+ endforeach ?>
$stack[] = "CLOSE"; ?>
if ($current->children): ?>
$stack = array_merge($stack, $current->children) ?>
--
cgit v1.2.3