Skip to content

Commit

Permalink
fix: logout link (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Dec 13, 2023
1 parent 3d04c9a commit 1a1d735
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/unfold/templates/unfold/helpers/account_links.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
{% endif %}

<div class="border-t mt-1 pt-1 dark:border-gray-700">
<a href="{% url 'admin:logout' %}" class="bg-none block mx-1 px-3 py-2 text-red-500 rounded hover:bg-red-100 dark:hover:bg-red-500/20 dark:hover:text-red-500">
{% translate 'Log out' %}
</a>
<form id="logout-form" method="post" action="{% url 'admin:logout' %}" class="bg-none block mx-1 px-3 py-2 text-red-500 rounded hover:bg-red-100 dark:hover:bg-red-500/20 dark:hover:text-red-500">
{% csrf_token %}

<button type="submit">
{% translate 'Log out' %}
</button>
</form>
</div>
</nav>
</div>

0 comments on commit 1a1d735

Please sign in to comment.