Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add link to add exercises from the menu bar

Roland Geider4bff848af353
diff --git a/wger/manager/templates/navigation.html b/wger/manager/templates/navigation.html
index c8236cdb7..bb79d33af 100644
--- a/wger/manager/templates/navigation.html
+++ b/wger/manager/templates/navigation.html
@@ -42,6 +42,10 @@
<ul class="dropdown-menu">
<li><a href="{% url 'wger.exercises.views.exercises.overview' %}">{% trans "Exercises" %}</a></li>
<li><a href="{% url 'muscle-overview' %}">{% trans "Muscle overview" %}</a></li>
+ {% if user.is_authenticated and not user.get_profile.is_temporary %}
+ <li><a href="{% url 'exercise-add' %}">{% trans "Add new exercise" %}</a><li>
+ {% endif %}
+
{% if perms.exercises %}
<li class="divider"></li>
<li class="nav-header">{% trans "Administration" %}</li>