summaryrefslogtreecommitdiffstats
path: root/views/Photos/index.html.php
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
committerMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
commit2389d66da849798f8d4ec5f10e3b07c11da49185 (patch)
treee22556d12982395b469a23420c662662e3e064cc /views/Photos/index.html.php
downloadotakuhub-2389d66da849798f8d4ec5f10e3b07c11da49185.tar.xz
Initial Commit
Diffstat (limited to 'views/Photos/index.html.php')
-rw-r--r--views/Photos/index.html.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/views/Photos/index.html.php b/views/Photos/index.html.php
new file mode 100644
index 0000000..5d10867
--- /dev/null
+++ b/views/Photos/index.html.php
@@ -0,0 +1,7 @@
+<?php if (count($photos) == 0): ?>
+<?= $this->html->link("Add a photo","photos::add"); ?>
+<?php else: ?>
+<?php foreach($photos as $photo): ?>
+ <?=$this->html->image("/photos/view/{$photo->_id}.jpg"); ?>
+<?php endforeach; ?>
+<?php endif; ?> \ No newline at end of file