bigly-chat/views/header_block.ejs
2024-10-25 20:48:11 -04:00

16 lines
No EOL
565 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>
<% } 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>
<% } %>
</div>