feat: Add login/logout button
This commit is contained in:
parent
e3ee4a2d32
commit
ddd28a677d
@ -14,6 +14,14 @@
|
|||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<a href="https://codeberg.org/moanos/notfellchen">{% translate "About the software" %}</a>
|
{% if user.is_authenticated %}
|
||||||
|
<div class="profile-card">
|
||||||
|
<p>{{ user.username }}</p>
|
||||||
|
<form action="{% url 'logout' %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button type="submit">Ausloggen</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user