summaryrefslogtreecommitdiff
path: root/views/partials/header.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials/header.ejs')
-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>