summaryrefslogtreecommitdiff
path: root/views/partials/header.ejs
blob: 57f39d8b62533627eaf81c54f70eca94607dadaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div id="header">
<a href="/" class="logo"><img src="/assets/img/logo4.svg"></a>

<div id="minotaur">
  <span class="label"></span>
</div>

<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>-->
	
	<a href="#"  data-role="new-project-modal">New Project</a>
	

	[[ if (profile && String(user._id) == String(profile._id)) { ]]
	<a href="/profile" data-role="edit-profile-modal" class="topLink editProfile">Settings</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>
</div>