bigly-chat/views/header_block.ejs

14 lines
424 B
Text
Raw Normal View History

2024-09-19 04:31:30 -04:00
<div class='header'>
2024-09-19 04:40:05 -04:00
<img src='/static/img/logo.svg'>
2024-09-19 04:31:30 -04:00
<a href='/'>BiglyChat</a>
2024-09-19 05:04:03 -04:00
<%if (username=='!nobody' ) { %>
<div class="button"><a href="/client/login">Login</a></div>
<% } else { %>
2024-09-19 05:44:24 -04:00
<a href="/client/user?id=<%= username %>">
2024-09-19 05:04:03 -04:00
<%= username %>
</a>
2024-09-19 05:44:24 -04:00
<a href="/client/upload">
Upload
</a>
2024-09-19 05:04:03 -04:00
<% } %>
2024-09-19 04:31:30 -04:00
</div>