Skip to content

Commit

Permalink
Add logout button to navbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturner246 committed Sep 13, 2024
1 parent 28641eb commit 4019426
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main/templates/main/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="{% url 'main:index' %}">DUNE Process Manager</a>
{% if user.is_authenticated %}
<form method="post" action="{% url 'main:logout' %}">
{% csrf_token %}
<button type="submit">Logout</button>
</form>
{% endif %}
</div>
</nav>
<div class="container py-3">
Expand Down

0 comments on commit 4019426

Please sign in to comment.