{% load i18n %} {% load staticfiles %} {% load wger_extras %}
{% comment %} If there are more than 1 settings, don't output the repetitions e.g. "4 x 8 8 10 10" is shown only as "8 8 10 10", after all those 4 sets are not done four times! But "3 x 12" is stil shown like that. {% endcomment %} {% if exercise|get_current_settings:set.id|length == 1 %} {{ set.sets }} × {% endif %} {% comment %} get_current_settings only does a exercise.setting_set.filter(set_id=set_id) {% endcomment %} {% for setting in exercise|get_current_settings:set.id %} {% if setting.reps == 99 %} ∞ {%else%} {{setting.reps}} {%endif%} {% if not forloop.last %} – {% endif %} {% empty %} {% trans "This exercise has no repetitions." %} {% trans "Edit them now."%} {% endfor %}
{% for comment in exercise.exercisecomment_set.all %}
{{comment}}
{% endfor %}