Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Only show the logout link to logged-in users

Roland Geider019b98313973
diff --git a/manager/templates/base.html b/manager/templates/base.html
index 4ac9bac40..cc07fae1b 100644
--- a/manager/templates/base.html
+++ b/manager/templates/base.html
@@ -61,6 +61,7 @@
</ul>
+ {% if user.username %}
<ul style="float:right;">
<li>
<a href="{% url manager.views.logout %}">
@@ -68,6 +69,7 @@
</a>
</li>
</ul>
+ {% endif %}
</div>
</div>
</nav>