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

17 lines
No EOL
599 B
Text

<div class='header'>
<img class="header-img" src="/static/img/logo.svg">
<a class="header-link" href='/'>BiglyChat</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>