From 0cce988f119b80fd69b9a415c9e9b983325a12af Mon Sep 17 00:00:00 2001 From: stilbruch Date: Mon, 9 May 2022 00:25:31 -0500 Subject: Improve history page --- app/templates/home.html | 2 +- app/templates/workout/history.html | 43 +++++++++++++++++++++----------------- 2 files changed, 25 insertions(+), 20 deletions(-) (limited to 'app/templates') diff --git a/app/templates/home.html b/app/templates/home.html index 243f76d..07d6269 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -109,7 +109,7 @@ {% for record in records %} {{ record.workout.name }} - {{ record.finished.strftime("%m/%d/%y %-I:%M %p") }} + {{ record.finished_nice() }} View {% endfor %} diff --git a/app/templates/workout/history.html b/app/templates/workout/history.html index de199a1..e8f2bc5 100644 --- a/app/templates/workout/history.html +++ b/app/templates/workout/history.html @@ -1,29 +1,34 @@ {% extends 'base/layout.html' %} -{% block title %}Workout{% endblock %} - {% block content %}
-

Workout

+

{{ workout_record.workout.name }}

+

{{ workout_record.finished_nice() }}

- - - - - - - - {% for set in record.sets %} - - - - - - {% endfor %} - -
SetlbsReps
{{ set.lbs }}{{ set.reps }}
+ {% for exercise in exercises %} + View Progress +

{{ exercise.name }}

+ + + + + + + + + {% for set in exercise.sets %} + + + + + + + {% endfor %} + +
SetlbsReps1RM
{{ loop.index0 + 1 }}{{ set.lbs }}{{ set.reps }}{{ set.one_rep_max() }}
+ {% endfor %}
-- cgit v1.2.3