Add logout button to header

This commit is contained in:
Xevion
2022-03-27 00:23:29 -05:00
parent 1abf959645
commit d0f8e8f221

View File

@@ -3,7 +3,7 @@
<span id="logo">runnerspace</span>
<div class="header-login">
{% if current_user.is_authenticated %}
Logged in as <a href="/user/{{ current_user.username }}" class="username">{{ current_user.username }}</a>
Logged in as <a href="/user/{{ current_user.username }}/" class="username">{{ current_user.username }}</a> | <a href="/logout">Logout</a>
{% else %}
<a href="/login">Login</a> or <a href="/signup">Sign-up</a>!
{% endif %}