szurubooru/public_html/templates/top-navigation.tpl

24 lines
473 B
Smarty
Raw Normal View History

2014-09-02 09:36:42 +02:00
<ul>
<!-- todo: check privileges -->
<% if (canListUsers) { %>
2014-09-04 19:57:06 +02:00
<li class="users">
<a href="#/users">Users</a>
</li>
<% } %>
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 { %>
<li class="my-account">
<a href="#/user/<%= user.name %>"><%= user.name %></a>
</li>
2014-09-02 09:36:42 +02:00
<li class="logout">
<a href="#/logout">Logout</a>
</li>
<% } %>
</ul>