aboutsummaryrefslogtreecommitdiff
path: root/views/list/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/list/index.php')
-rw-r--r--views/list/index.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/views/list/index.php b/views/list/index.php
new file mode 100644
index 0000000..01c18b4
--- /dev/null
+++ b/views/list/index.php
@@ -0,0 +1,22 @@
+<?php
+ $list = null;
+ $author = null;
+
+ try {
+ $list = Database\ArchiveList::fromDB($lid);
+ $author = Database\User::fromDBuid($list->AuthorUID);
+ }
+ catch(Exception $e) {}
+?>
+
+<?php if ($list !== null): ?>
+ <section>
+ <p><?= $list->Name ?></p>
+ <p><?= $list->Description ?></p>
+ <p><?= $author->Username ?></p>
+ </section>
+<?php else: ?>
+ <p>
+ List doesn't exist
+ </p>
+<?php endif; ?>