{% load i18n %} {% load url from future %} {% load staticfiles %} {% load manager_extras %}
{% for day_of_week in day.day.select_related %} {% trans day_of_week.day_of_week %} {% if not forloop.last %}, {% endif %} {% if forloop.last %}–{% endif %} {% endfor %} {{ day.description }} | |
---|---|
{{ forloop.counter }} |
{% for exercise in set.exercises.select_related %}
{% empty %}
{{ exercise.name }}:
{% 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 %}
{% endfor %}
|
{% trans "No exercises selected for this day." %} {% trans "Add one now." %} {% endfor %} | |
{% trans "Add exercises to this workout day" %} |
{% for comment in exercise.exercisecomment_set.all %}- {{comment}}
{% endfor %}