summaryrefslogtreecommitdiff
path: root/views/docs.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/docs.ejs')
-rw-r--r--views/docs.ejs49
1 files changed, 49 insertions, 0 deletions
diff --git a/views/docs.ejs b/views/docs.ejs
new file mode 100644
index 0000000..601f40f
--- /dev/null
+++ b/views/docs.ejs
@@ -0,0 +1,49 @@
+<!doctype html>
+<html>
+<head>
+ <title>vvalls</title>
+ [[ include partials/meta ]]
+</head>
+<body class="loading">
+<div class="rapper page docs">
+ [[ include partials/header ]]
+
+ <br clear="all">
+
+ [[ if (! isNew) { ]]
+ <h1>[[- doc.displayName ]]</h1>
+
+ [[ if (user.isStaff) { ]]
+ <a href="#" data-role="edit-document-modal" data-name="[[- doc.name ]]">Edit this document</a>
+ [[ include staff/edit-docs ]]
+ [[ } ]]
+
+ <div class="content">
+ [[- content ]]
+ </div>
+
+ [[ } else { ]]
+ [[ if (doc.name !== "new") { ]]
+ <h1>404!</h1>
+ <p>
+ [[- doc.name ]] not found!
+ </p>
+ [[ } ]]
+
+ [[ if (user.isStaff) { ]]
+ <p>
+ <a href="#" data-role="new-document-modal" data-name="[[- doc.name ]]">Create this document</a>
+ </p>
+ [[ include staff/edit-docs ]]
+ [[ } ]]
+
+ [[ } ]]
+
+ [[ include partials/sign-in ]]
+ [[ include partials/footer ]]
+
+</div>
+
+</body>
+[[ include partials/scripts ]]
+</html>