diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/docs.ejs | 49 | ||||
| -rwxr-xr-x | views/home.ejs | 2 | ||||
| -rw-r--r-- | views/modal.ejs | 2 | ||||
| -rw-r--r-- | views/partials/edit-profile.ejs | 6 | ||||
| -rw-r--r-- | views/partials/footer.ejs | 2 | ||||
| -rw-r--r-- | views/partials/meta.ejs | 4 | ||||
| -rw-r--r-- | views/partials/scripts.ejs | 1 | ||||
| -rw-r--r-- | views/partials/sign-in.ejs (renamed from views/partials/signin.ejs) | 0 | ||||
| -rw-r--r-- | views/staff.ejs | 19 | ||||
| -rw-r--r-- | views/staff/edit-docs.ejs | 42 |
10 files changed, 120 insertions, 7 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> diff --git a/views/home.ejs b/views/home.ejs index 670dcbe..3ed56ef 100755 --- a/views/home.ejs +++ b/views/home.ejs @@ -45,7 +45,7 @@ <a href="#loadmore" class="viewMore">View More</a> - [[ include partials/signin ]] + [[ include partials/sign-in ]] [[ include partials/footer ]] </div> diff --git a/views/modal.ejs b/views/modal.ejs index b47f6aa..aa75f72 100644 --- a/views/modal.ejs +++ b/views/modal.ejs @@ -10,7 +10,7 @@ <div style="height: 70%; clear: both;"></div> - [[ include partials/signin ]] + [[ include partials/sign-in ]] [[ include projects/new-project ]] [[ include projects/edit-project ]] [[ include partials/footer ]] diff --git a/views/partials/edit-profile.ejs b/views/partials/edit-profile.ejs index f5807ee..96e9da4 100644 --- a/views/partials/edit-profile.ejs +++ b/views/partials/edit-profile.ejs @@ -49,13 +49,15 @@ <div> <input id="profile_facebook" name="facebookUrl" class="element text medium" type="text" maxlength="255"> </div> - </li> + </li> <li> <label class="description" for="profile_avatar">Upload Avatar:</label> <div> <input id="profile_avatar" name="avatar" class="element file" type="file"> </div> - <p class="guidelines"><img id="load_avatar"><small>please choose a picture at least 500px wide</small></p> + <p class="guidelines"><small>please choose a picture at least 500px wide</small></p> + <br> + <br><img id="load_avatar"> </li> <li class="section_break"> diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs index df48cf3..a40a873 100644 --- a/views/partials/footer.ejs +++ b/views/partials/footer.ejs @@ -1,7 +1,7 @@ <div class="footer"> <a href="/about">About</a> - <a href="/faq">FAQ</a> + <a href="/about/faq">FAQ</a> <span>©2014 VVALLS Inc.</span> diff --git a/views/partials/meta.ejs b/views/partials/meta.ejs index d1397c6..ceaaba1 100644 --- a/views/partials/meta.ejs +++ b/views/partials/meta.ejs @@ -11,8 +11,8 @@ <link rel="image_src" href=""/> <meta property="og:url" content=""/> <meta property="og:site_name" content="" /> - <link rel="icon" href="favicon.ico" type="image/x-icon"> - <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="icon" href="/favicon.ico" type="image/x-icon"> + <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> <link href='/assets/stylesheets/ionicons.css' rel='stylesheet' type='text/css'> <link href='/assets/stylesheets/app.css' rel='stylesheet' type='text/css'> <!--[if lt IE 9]> diff --git a/views/partials/scripts.ejs b/views/partials/scripts.ejs index 5501c26..02b11a7 100644 --- a/views/partials/scripts.ejs +++ b/views/partials/scripts.ejs @@ -52,5 +52,6 @@ <script type="text/javascript" src="/assets/javascripts/ui/NewProjectModal.js"></script> <script type="text/javascript" src="/assets/javascripts/ui/EditProjectModal.js"></script> <script type="text/javascript" src="/assets/javascripts/ui/EditProfileModal.js"></script> +<script type="text/javascript" src="/assets/javascripts/ui/DocumentModal.js"></script> <script type="text/javascript" src="/assets/javascripts/app.js"></script> diff --git a/views/partials/signin.ejs b/views/partials/sign-in.ejs index 3341aec..3341aec 100644 --- a/views/partials/signin.ejs +++ b/views/partials/sign-in.ejs diff --git a/views/staff.ejs b/views/staff.ejs new file mode 100644 index 0000000..f099edb --- /dev/null +++ b/views/staff.ejs @@ -0,0 +1,19 @@ +<!doctype html> +<html> +<head> + <title>vvalls</title> + [[ include partials/meta ]] +</head> +<body class="loading"> +<div class="rapper page"> + [[ include partials/header ]] + + [[ include staff/edit-docs ]] + + [[ include partials/footer ]] +</div> + + +</body> +[[ include partials/scripts ]] +</html> diff --git a/views/staff/edit-docs.ejs b/views/staff/edit-docs.ejs new file mode 100644 index 0000000..cecce10 --- /dev/null +++ b/views/staff/edit-docs.ejs @@ -0,0 +1,42 @@ +<div class="mediaDrawer fixed animate editDocument"> + <span class="close">X</span> + <div id="form_container"> + + <form> + <input type="hidden" name="_csrf" value="[[- token ]]"> + <input type="hidden" name="name"> + <ul> + <li class="section_break"> + <h3>Documentation</h3> + </li> + + <li> + <label class="description" for="docs_displayName">Title:</label> + <div> + <input id="docs_displayName" name="displayName" class="element text medium" type="text" maxlength="255"> + </div> + </li> + + <li> + <label class="description" for="docs_name">Path:</label> + <div> + <input id="docs_name" name="new_name" class="element text medium" type="text" maxlength="255"> + </div> + </li> + + <li> + <label class="description" for="docs_body">Body:</label> + <textarea id="docs_body" name="body"></textarea> + </li> + + <li class="buttons"> + <input id="saveForm" class="button_text" type="submit" value="Submit" /> + </li> + <div class="errors"> + <div>There was a problem with your submission:</div> + <div class="errorList"></div> + </div> + </ul> + </form> + </div> +</div>
\ No newline at end of file |
