Skip to content

Commit

Permalink
Fix Logout
Browse files Browse the repository at this point in the history
  • Loading branch information
svenseeberg committed Mar 21, 2024
1 parent 287b203 commit 8f6628a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion opendrift_leeway_webgui/leeway/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@
<p>
<a href="https://github.com/digitalfabrik/opendrift-leeway-webgui">Source Code</a>
{% if user.is_authenticated %}
| <a href="{% url "simulation_documentation" %}">Documentation</a> | <a href="{% url "simulation_list" %}">List of simulations</a> | <a href="{% url "simulation_form" %}">New Simulation</a> | <a href="{% url "logout" %}">Logout</a>
| <a href="{% url "simulation_documentation" %}">Documentation</a> | <a href="{% url "simulation_list" %}">List of simulations</a> | <a href="{% url "simulation_form" %}">New Simulation</a>
{% endif %}
</p>
{% if user.is_authenticated %}
<form method="post" action="{% url 'logout' %}">
{% csrf_token %}
<button type="submit">logout</button>
</form>
{% endif %}
</main>
</body>
</html>

0 comments on commit 8f6628a

Please sign in to comment.