summaryrefslogtreecommitdiff
path: root/views/docs.ejs
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-06-10 01:22:43 -0400
committerJulie Lala <jules@okfoc.us>2014-06-10 01:22:43 -0400
commit160eb7f88036d997d555520df204bf37aeb22f77 (patch)
tree56752055d29a9351c6659bdf69413657d3ed6c2b /views/docs.ejs
parenta70194c0a4540f7e68305d57c2fc34d864e3b009 (diff)
confirm modal, alert modal
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 ]]