feat: Add login/logout button

This commit is contained in:
moanos [he/him] 2024-04-07 10:00:37 +02:00
parent e3ee4a2d32
commit ddd28a677d

View File

@ -14,6 +14,14 @@
</nav>
<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>