Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add link to user preferences on main navigation bar

Roland Geiderfc56563bf305
diff --git a/wger/manager/templates/template.html b/wger/manager/templates/template.html
index 55752f4e0..f03093b0e 100644
--- a/wger/manager/templates/template.html
+++ b/wger/manager/templates/template.html
@@ -165,6 +165,11 @@
{% trans 'Logout' %}
</a>
</li>
+ <li>
+ <a href="{% url wger.manager.views.preferences %}">
+ {% trans 'My preferences' %}
+ </a>
+ </li>
<li class="divider"></li>
<li class="nav-header">{% trans "Languages" %}</li>
{% endif %}
diff --git a/wger/manager/tests/workout.py b/wger/manager/tests/workout.py
index 7f6db86a2..12d8da1b9 100644
--- a/wger/manager/tests/workout.py
+++ b/wger/manager/tests/workout.py
@@ -108,7 +108,7 @@ class EditWorkoutTestCase(WorkoutManagerTestCase):
# Try editing the workout
response = self.client.post(reverse('workout-edit', kwargs={'pk': 3}),
- {'comment': 'A new comment'})
+ {'comment': 'A new comment'})
workout = TrainingSchedule.objects.get(pk=3)
if fail: