summaryrefslogtreecommitdiff
path: root/views/partials/header.ejs
blob: e83f42ae167f238a5379b8330a4012489c48257b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<a href="/" class="logo"><img src="/assets/img/logo4.svg"></a>

<span class="topLinks">
[[ if (logged_in) { ]]

	[[ if (user.isStaff) { ]]
		<a href="/layout" data-role="show-layouts-modal" class="topLink">Layouts</a>
	[[ } ]]

	<a href="/project" data-role="show-projects-modal" 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>
[[ } ]]
</span>