Self hosted FLOSS fitness/workout, nutrition and weight tracker
Small correction to working used
Roland Geider36193781693e
diff --git a/wger/exercises/templates/exercise/pending.html b/wger/exercises/templates/exercise/pending.htmlindex 66de904b5..c36c840eb 100644--- a/wger/exercises/templates/exercise/pending.html+++ b/wger/exercises/templates/exercise/pending.html@@ -3,7 +3,7 @@{% load staticfiles %}{% load wger_extras %}-{% block title %}{% trans "Pending exercises" %}{% endblock %}+{% block title %}{% trans "Exercises pending review" %}{% endblock %}{% block content %}diff --git a/wger/exercises/templates/exercise/view.html b/wger/exercises/templates/exercise/view.htmlindex 4234b14a0..025a62f86 100644--- a/wger/exercises/templates/exercise/view.html+++ b/wger/exercises/templates/exercise/view.html@@ -195,7 +195,7 @@ included in the database.{% endblocktrans %}{% if perms.exercises.change_exerciseimage %}{% with images=exercise.exerciseimage_set.pending %}{% if images %}-<h4>{% trans "Pending images" %}</h4>+<h4>{% trans "Images pending review" %}</h4><div class="list-group">{% for image in images %}<div class="list-group-item">diff --git a/wger/exercises/tests/test_exercise.py b/wger/exercises/tests/test_exercise.pyindex 04668a6ea..7592def3f 100644--- a/wger/exercises/tests/test_exercise.py+++ b/wger/exercises/tests/test_exercise.py@@ -193,12 +193,12 @@ class ExerciseDetailTestCase(WorkoutManagerTestCase):self.assertContains(response, 'Edit')self.assertContains(response, 'Delete')self.assertContains(response, 'Add new comment')- self.assertNotContains(response, 'Exercise is pending')+ self.assertNotContains(response, 'Exercise is pending review')else:self.assertNotContains(response, 'Edit')self.assertNotContains(response, 'Delete')self.assertNotContains(response, 'Add new comment')- self.assertNotContains(response, 'Exercise is pending')+ self.assertNotContains(response, 'Exercise is pending review')# Ensure that non-existent exercises throw a 404.response = self.client.get(reverse('exercise:exercise:view', kwargs={'id': 42}))diff --git a/wger/exercises/tests/test_submitted_exercise.py b/wger/exercises/tests/test_submitted_exercise.pyindex febd9cd0b..36abeb271 100644--- a/wger/exercises/tests/test_submitted_exercise.py+++ b/wger/exercises/tests/test_submitted_exercise.py@@ -70,7 +70,7 @@ class ExercisesPendingDetailTestCase(WorkoutManagerTestCase):Helper function'''response = self.client.get(reverse('exercise:exercise:view', kwargs={'id': 4}))- self.assertContains(response, 'Exercise is pending')+ self.assertContains(response, 'Exercise is pending review')if not fail:self.assertEqual(response.status_code, 200)diff --git a/wger/exercises/tests/test_submitted_image.py b/wger/exercises/tests/test_submitted_image.pyindex 1a22f72d8..cad128740 100644--- a/wger/exercises/tests/test_submitted_image.py+++ b/wger/exercises/tests/test_submitted_image.py@@ -33,11 +33,11 @@ class ImagePendingDetailTestCase(WorkoutManagerTestCase):self.assertEqual(response.status_code, 200)if not fail:- self.assertContains(response, 'Pending images')+ self.assertContains(response, 'Images pending review')self.assertContains(response, 'Accept')self.assertContains(response, 'Decline')else:- self.assertNotContains(response, 'Pending images')+ self.assertNotContains(response, 'Images pending review')self.assertNotContains(response, 'Accept')self.assertNotContains(response, 'Decline')diff --git a/wger/nutrition/templates/ingredient/pending.html b/wger/nutrition/templates/ingredient/pending.htmlindex 7d049ba12..e6de7dd9a 100644--- a/wger/nutrition/templates/ingredient/pending.html+++ b/wger/nutrition/templates/ingredient/pending.html@@ -3,7 +3,7 @@{% load staticfiles %}{% load wger_extras %}-{% block title %}{% trans "Pending ingredients" %}{% endblock %}+{% block title %}{% trans "Ingredients pending review" %}{% endblock %}{% block content %}diff --git a/wger/nutrition/tests/test_ingredient_overview.py b/wger/nutrition/tests/test_ingredient_overview.pyindex d1a30d944..01bed3003 100644--- a/wger/nutrition/tests/test_ingredient_overview.py+++ b/wger/nutrition/tests/test_ingredient_overview.py@@ -82,7 +82,10 @@ class OverviewPlanTestCase(WorkoutManagerTestCase):self.assertEqual(response.status_code, 200)# No ingredients pending review- self.assertNotContains(response, 'Pending ingredient')+ if admin:+ self.assertContains(response, 'Ingredients pending review')+ else:+ self.assertNotContains(response, 'Ingredients pending review')# Only authorized users see the edit linksif logged_in and not demo: