summaryrefslogtreecommitdiff
path: root/views/docs.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/docs.ejs')
-rw-r--r--views/docs.ejs15
1 files changed, 10 insertions, 5 deletions
diff --git a/views/docs.ejs b/views/docs.ejs
index fee5545..e3f0823 100644
--- a/views/docs.ejs
+++ b/views/docs.ejs
@@ -12,15 +12,19 @@
[[ 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 partials/edit-documentation ]]
- [[ } ]]
<div class="content">
[[- content ]]
</div>
+
+ [[ if (user.isStaff) { ]]
+ <div class="options">
+ <a href="#" data-role="new-document-modal">New Document</a> |
+ <a href="#" data-role="edit-document-modal" data-name="[[- doc.name ]]">Edit</a> |
+ <a href="#" data-role="delete-document-modal" data-name="[[- doc.name ]]">Delete</a>
+ [[ include partials/edit-documentation ]]
+ </div>
+ [[ } ]]
[[ } else { ]]
[[ if (doc.name !== "new") { ]]
@@ -39,6 +43,7 @@
[[ } ]]
+ [[ include partials/confirm-modal ]]
[[ include partials/sign-in ]]
[[ include partials/footer ]]