bigly-chat/views/header_block.ejs
2024-11-25 14:12:44 -05:00

20 lines
No EOL
787 B
Text

<div class='header'>
<a href='/'><img class="header-img" src="/static/img/logo.svg"></a>
<%if (username=='!nobody' ) { %>
<a class="header-link" href="/client/login">Login</a>
<a class="header-link" href="/client/register">Register</a>
<% } else { %>
<a class="header-link" href="/client/user?id=<%= username %>">
<%= username %>
</a>
<a class="header-link" href="/client/upload">
Upload
</a>
<a class="header-link" href="/client/settings">
Settings
</a>
<a class="header-link" href="/client/messages">
<img class="header-img" src="/static/img/<%= isRead %>.svg">
</a>
<% } %>
</div>