2014-09-02 09:36:42 +02:00
|
|
|
<ul>
|
|
|
|
<!-- todo: check privileges -->
|
|
|
|
<li class="users">
|
|
|
|
<a href="#/users">Users</a>
|
|
|
|
</li>
|
|
|
|
<% if (!loggedIn) { %>
|
|
|
|
<li class="login">
|
|
|
|
<a href="#/login">Login</a>
|
|
|
|
</li>
|
|
|
|
<li class="register">
|
|
|
|
<a href="#/register">Register</a>
|
|
|
|
</li>
|
|
|
|
<% } else { %>
|
2014-09-03 09:10:26 +02:00
|
|
|
<li class="my-account">
|
2014-09-03 19:07:53 +02:00
|
|
|
<a href="#/user/<%= user.name %>"><%= user.name %></a>
|
2014-09-03 09:10:26 +02:00
|
|
|
</li>
|
2014-09-02 09:36:42 +02:00
|
|
|
<li class="logout">
|
|
|
|
<a href="#/logout">Logout</a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
</ul>
|