Skip to content

Commit

Permalink
Merge pull request #544 from farridav/logout_issue
Browse files Browse the repository at this point in the history
Logout issue
  • Loading branch information
farridav authored Mar 23, 2024
2 parents 4135742 + 4bd236d commit 97ab418
Show file tree
Hide file tree
Showing 5 changed files with 410 additions and 505 deletions.
7 changes: 4 additions & 3 deletions jazzmin/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@
<i class="fas fa-key mr-2"></i> {% trans 'Change password' %}
</a>
<div class="dropdown-divider"></div>
<a href="{% url 'admin:logout' %}" class="dropdown-item">
<i class="fas fa-users mr-2"></i> {% trans 'Log out' %}
</a>
<form id="logout-form" method="post" action="{% url 'admin:logout' %}">
{% csrf_token %}
<button type="submit" class="dropdown-item"><i class="fas fa-users mr-2"></i> {% translate 'Log out' %}</button>
</form>
{% get_user_menu user request.current_app|default:"admin" as user_menu %}
{% for link in user_menu %}
<div class="dropdown-divider"></div>
Expand Down
Loading

0 comments on commit 97ab418

Please sign in to comment.