summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-06-12 15:21:27 -0400
committerJules Laplace <jules@okfoc.us>2014-06-12 15:21:27 -0400
commit036427dfe207249ca5d6260ae1f6e8006ff90dd9 (patch)
tree1f47f12d1ba04f55571930edde72f0b2dde2ef22 /views
parent5a215e1b00e4fd026a83e81baa7a45c28435f73c (diff)
split up api module
Diffstat (limited to 'views')
-rw-r--r--views/partials/header.ejs8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/partials/header.ejs b/views/partials/header.ejs
index 94d5a43..55505ed 100644
--- a/views/partials/header.ejs
+++ b/views/partials/header.ejs
@@ -2,13 +2,19 @@
<span class="topLinks">
[[ if (logged_in) { ]]
- <a href="/layout" data-role="show-layouts-modal" class="topLink">Layouts</a>
+
+ [[ if (user.isStaff) { ]]
+ <a href="/layout" data-role="show-layouts-modal" class="topLink">Layouts</a>
+ [[ } ]]
+
<a href="/project" class="topLink">Projects</a>
+
[[ if (profile && String(user._id) == String(profile._id)) { ]]
<a href="/profile" data-role="edit-profile-modal" class="topLink editProfile">Edit Profile <span class="icon-ios7-gear-outline"></span></a>
[[ } else if (! profile) { ]]
<a href="/profile" class="topLink">Profile</a>
[[ } ]]
+
[[ } else { ]]
<a href="/signup" data-role="show-signup-modal" class="signUp topLink">Sign Up</a>
<a href="/login" data-role="show-signin-modal" class="signIn topLink">Sign In</a>