Skip to content

Commit

Permalink
Fix logout button
Browse files Browse the repository at this point in the history
  • Loading branch information
sissbruecker committed Mar 16, 2024
1 parent ee4f992 commit 46fc594
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bookmarks/templates/bookmarks/nav_menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
</ul>
</div>
<a href="{% url 'bookmarks:settings.index' %}" class="btn btn-link">Settings</a>
<a href="{% url 'logout' %}" class="btn btn-link">Logout</a>
<form class="d-inline" action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button type="submit" class="btn btn-link">Logout</button>
</form>
</div>
{# Menu drop-down for smaller devices #}
<div class="show-md">
Expand Down Expand Up @@ -74,7 +77,10 @@
<a href="{% url 'bookmarks:settings.index' %}" class="btn btn-link">Settings</a>
</li>
<li>
<a href="{% url 'logout' %}" class="btn btn-link">Logout</a>
<form class="d-inline" action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button type="submit" class="btn btn-link">Logout</button>
</form>
</li>
</ul>
</div>
Expand Down

0 comments on commit 46fc594

Please sign in to comment.