summaryrefslogtreecommitdiff
path: root/views/partials/header.ejs
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-06-07 04:59:46 -0400
committerJulie Lala <jules@okfoc.us>2014-06-07 04:59:46 -0400
commit6dc5e91ebf84181bc8ca1057d5338296d918931c (patch)
tree91ca0c14cab46b7c71d4ce5347739eaa23d398c4 /views/partials/header.ejs
parentf28d8f4aac3f6411d43ac81a70bfebe5e61e96c7 (diff)
tuck away signed-in notice
Diffstat (limited to 'views/partials/header.ejs')
-rw-r--r--views/partials/header.ejs7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/partials/header.ejs b/views/partials/header.ejs
index fce96cc..d6c8fa9 100644
--- a/views/partials/header.ejs
+++ b/views/partials/header.ejs
@@ -2,10 +2,11 @@
<span class="topLinks">
[[ if (logged_in) { ]]
- <span>[[- user.displayName ]]</span>
- <a href="/profile" class="topLink">View Profile</a>
+ [[ if (profile && user._id == profile._id) { ]]
<a href="/profile" data-role="edit-profile-modal" class="topLink editProfile">Edit Profile <span class="icon-ios7-gear-outline"></span></a>
- <a href="/logout" class="topLink">Sign Out</a>
+ [[ } else if (! profile) { ]]
+ <a href="/profile" class="topLink">View Profile</a>
+ [[ } ]]
[[ } else { ]]
<a href="#" data-role="show-signup-modal" class="signUp topLink">Sign Up</a>
<a href="#" data-role="show-signin-modal" class="signIn topLink">Sign In</a>