{% extends 'base.html' %} {% block content %}

{{ person['PersonName'] }}

List of workouts
{{ render_partial('partials/tags.html',person_id=person['PersonId'], tags=tags) }}
{% if person['Workouts']|length > 0 %} {% for e in person['FilteredExercises'] %} {% endfor %} {% for w in person['Workouts'] %} {% for e in person['FilteredExercises'] %} {% endfor %} {% endfor %}
Date {{ e['ExerciseName'] }}
{{ w['StartDate'] | strftime("%b %d %Y") }} {% set topset_exercise = w['TopSets'] | get_first_element_from_list_with_matching_attribute('ExerciseId', e['ExerciseId']) %} {% if topset_exercise %} {{ topset_exercise['Repetitions'] }} x {{ topset_exercise['Weight'] }}kg {% endif %}
{% endif %} {% if person['Workouts']|length == 0 %} {% endif %}
{% for graph in person['ExerciseProgressGraphs'] %} {{ render_partial('partials/sparkline.html', **graph['ExerciseProgressGraph']) }} {% endfor %}
{{ render_partial('partials/stats.html', stats=person['Stats']) }} {% endblock %}