2014-09-02 09:36:42 +02:00
|
|
|
<ul>
|
2014-09-07 19:49:11 +02:00
|
|
|
<li class="home">
|
|
|
|
<a href="#/home">Home</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<% if (canListPosts) { %>
|
|
|
|
<li class="posts">
|
|
|
|
<a href="#/posts">Posts</a>
|
|
|
|
</li>
|
|
|
|
<% if (canUploadPosts) { %>
|
|
|
|
<li class="upload">
|
|
|
|
<a href="#/upload">Upload</a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
<li class="comments">
|
|
|
|
<a href="#/comments">Comments</a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<% if (canListTags) { %>
|
|
|
|
<li class="tags">
|
|
|
|
<a href="#/tags">Tags</a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
|
2014-09-05 13:50:19 +02:00
|
|
|
<% if (canListUsers) { %>
|
2014-09-04 19:57:06 +02:00
|
|
|
<li class="users">
|
|
|
|
<a href="#/users">Users</a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
2014-09-07 19:49:11 +02:00
|
|
|
|
2014-09-02 09:36:42 +02:00
|
|
|
<% 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>
|
|
|
|
<% } %>
|
2014-09-07 19:49:11 +02:00
|
|
|
|
|
|
|
<li class="help">
|
|
|
|
<a href="#/help">Help</a>
|
|
|
|
</li>
|
2014-09-02 09:36:42 +02:00
|
|
|
</ul>
|