summaryrefslogtreecommitdiffstats
path: root/views/photos/index.html.php
diff options
context:
space:
mode:
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