mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-10 20:08:25 -06:00
Add logout button to header
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<span id="logo">runnerspace</span>
|
<span id="logo">runnerspace</span>
|
||||||
<div class="header-login">
|
<div class="header-login">
|
||||||
{% if current_user.is_authenticated %}
|
{% 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 %}
|
{% else %}
|
||||||
<a href="/login">Login</a> or <a href="/signup">Sign-up</a>!
|
<a href="/login">Login</a> or <a href="/signup">Sign-up</a>!
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user