diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-06-09 16:14:49 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-06-09 16:14:49 -0400 |
| commit | 1165ef5440e643252635aeea73a14cba0bb2e461 (patch) | |
| tree | 6563f5314c774ee3ac9216e8375b38037b2eddcb /views/docs.ejs | |
| parent | b1974b9c2fe6ee1f35b3e34895f134d906299cec (diff) | |
documentation system
Diffstat (limited to 'views/docs.ejs')
| -rw-r--r-- | views/docs.ejs | 49 |
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> |
