Self hosted FLOSS fitness/workout, nutrition and weight tracker
Don't show the word 'reps' on exercise charts
Roland Geider6a476b7ae91c
diff --git a/wger/exercises/static/js/exercises.js b/wger/exercises/static/js/exercises.jsindex ed8f07d27..36e598b21 100644--- a/wger/exercises/static/js/exercises.js+++ b/wger/exercises/static/js/exercises.js@@ -56,7 +56,7 @@ function highlight_muscle(element) {**/-function draw_weight_log_chart(data, div_id, rep_i18n) {+function draw_weight_log_chart(data, div_id) {var legend = [];var min_values = [];diff --git a/wger/exercises/templates/exercise/view.html b/wger/exercises/templates/exercise/view.htmlindex 1142b4a44..6321e033d 100644--- a/wger/exercises/templates/exercise/view.html+++ b/wger/exercises/templates/exercise/view.html@@ -45,7 +45,7 @@<script src="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.min.js' %}"></script><script>$(document).ready(function() {- draw_weight_log_chart({{json|safe}}, "{{svg_uuid}}", "{{reps}}");+ draw_weight_log_chart({{json|safe}}, "{{svg_uuid}}");});</script>{% endblock %}diff --git a/wger/exercises/views/exercises.py b/wger/exercises/views/exercises.pyindex 5a2ee8480..edff3ab6d 100644--- a/wger/exercises/views/exercises.py+++ b/wger/exercises/views/exercises.py@@ -146,7 +146,6 @@ def view(request, id, slug=None):template_data['logs'] = entry_logtemplate_data['json'] = chart_datatemplate_data['svg_uuid'] = str(uuid.uuid4())- template_data['reps'] = _("Reps")return render(request, 'exercise/view.html', template_data)diff --git a/wger/manager/templates/workout/log.html b/wger/manager/templates/workout/log.htmlindex c1b416055..05c878440 100644--- a/wger/manager/templates/workout/log.html+++ b/wger/manager/templates/workout/log.html@@ -79,8 +79,7 @@<script>$(document).ready(function() {draw_weight_log_chart({{exercise_list.chart_data|safe}},- "{{exercise_list.div_uuid}}",- "{{reps}}");+ "{{exercise_list.div_uuid}}");});</script>{% endwith %}diff --git a/wger/manager/views/log.py b/wger/manager/views/log.pyindex bda05d97c..7c755f65f 100644--- a/wger/manager/views/log.py+++ b/wger/manager/views/log.py@@ -267,7 +267,6 @@ class WorkoutLogDetailView(DetailView, WgerPermissionMixin):workout_log[day_id][exercise_id]['chart_data'] = chart_datacontext['workout_log'] = workout_log- context['reps'] = _("Reps")context['owner_user'] = self.owner_usercontext['is_owner'] = is_ownercontext['show_shariff'] = is_owner