Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Indent

Roland Geider154edf164957
diff --git a/manager/templates/workout/view.html b/manager/templates/workout/view.html
index c1973bd3c..8c667681e 100644
--- a/manager/templates/workout/view.html
+++ b/manager/templates/workout/view.html
@@ -43,20 +43,19 @@
{% for setting in exercise.setting_set.all %}
-
- {% comment %}
- TODO: solution with 'if' is ugly and bad!
- {% endcomment %}
- {% if setting.sets_id == set.id %}
- {{ set.sets }} <!--(Set-ID: {{ set.id }})-->
- x
-
- {% for individual_setting in setting.individual_exercises.select_related %}
- {{individual_setting.reps}}
- <!--(IndividualSetting-ID: {{ individual_setting.id }})-->
- <!--@ {{individual_setting.weight}}-->
- {% endfor %}
- {% endif %}
+ {% comment %}
+ TODO: solution with 'if' is ugly and bad!
+ {% endcomment %}
+ {% if setting.sets_id == set.id %}
+ {{ set.sets }} <!--(Set-ID: {{ set.id }})-->
+ x
+
+ {% for individual_setting in setting.individual_exercises.select_related %}
+ {{individual_setting.reps}}
+ <!--(IndividualSetting-ID: {{ individual_setting.id }})-->
+ <!--@ {{individual_setting.weight}}-->
+ {% endfor %}
+ {% endif %}
{% empty %}
<div class="box warning">
{% trans "No settings for this exercise." %} {% trans "Use link to add one." %}