{% load i18n %} {% load url from future %} {% load staticfiles %} {% load manager_extras %} {% for set in day.set_set.select_related %}
{% 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 }} {% trans 'Delete' %} {% trans 'Edit' %} {% trans 'Add weight log to this day' %}
{{ forloop.counter }} {% trans 'Move me' %}
{% trans 'Edit' %} {% trans 'Delete' %}
{% for exercise in set.exercises.select_related %}
{{ 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 %}
    {% for comment in exercise.exercisecomment_set.all %}
  • {{comment}}
  • {% endfor %}
{% endfor %}
{% empty %}
{% trans "No exercises selected for this day." %} {% trans "Add one now." %} {% endfor %}
{% trans "Add exercises to this workout day" %}