Skip to content

Commit

Permalink
use new style logout post
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartaccent committed Sep 16, 2024
1 parent 0b245fa commit 7e65cfd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
{% if user.is_staff %}
<li><a href="{% url 'admin:index' %}">{% trans 'Admin' %}</a></li>
{% endif %}
<li><a href="{% url 'logout' %}">{% trans 'Logout' %}</a></li>
<li>
<form method="post" action="{% url 'logout' %}" style="margin-bottom: 0">
{% csrf_token %}
<button type="submit" style="background-color:transparent;border:0;color:#2aaae9;cursor:pointer;font-size:1.5rem;font-weight:400">{% trans 'Logout' %}</button>
</form>
</li>
{% else %}
<li><a href="{% url 'login' %}">{% trans 'Login' %}</a></li>
{% endif %}
Expand Down

0 comments on commit 7e65cfd

Please sign in to comment.