diff options
Diffstat (limited to 'views/partials/header.ejs')
| -rw-r--r-- | views/partials/header.ejs | 7 |
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> |
