From d1f8adc797c3c6edd63b34d2da734783d9720138 Mon Sep 17 00:00:00 2001 From: FivePixels Date: Mon, 9 May 2022 16:43:19 -0500 Subject: Update records query to return all(), update footer on recent workouts to include number of recent workouts, programmatically add graphs to home page --- app/templates/home.html | 96 ++++++++++++++++++++++--------------------------- 1 file changed, 42 insertions(+), 54 deletions(-) (limited to 'app/templates') diff --git a/app/templates/home.html b/app/templates/home.html index af365ad..e06e79b 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -9,8 +9,7 @@

Hello {{ current_user.username }}

-

- Welcome to your home. +

Welcome to your home.

@@ -20,12 +19,10 @@

{{ current_user.workouts.count() }}

-

Workouts

-
-
+

Workouts

-

{{ records.count() }}

+

{{ records|length }}

Workouts Completed

@@ -36,12 +33,12 @@ + -->
@@ -49,7 +46,7 @@

- My Workouts + My Workouts

@@ -57,34 +54,34 @@ {% for workout in current_user.workouts %} - - - - + + + + + + {% endfor %}
{{ workout.name }}{{ workout.exercises.count() }} exercises -

- Record - Edit - Delete +

{{ workout.name }}{{ workout.exercises.count() }} exercises +

+ Record + Edit + Delete +

+
@@ -99,7 +96,7 @@

- Recent Workouts + Recent Workouts

@@ -118,35 +115,26 @@
- View All +
+ {% for completed_workout in top3 %}
- -
-
-
-
- -
-
-
-
- +
+ {% endfor %}
{% endblock %} -- cgit v1.2.3 From 083d5d904927e08bf365d74af504b14c6ad4a147 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Mon, 9 May 2022 18:05:23 -0500 Subject: More bugs --- app/templates/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/templates') diff --git a/app/templates/home.html b/app/templates/home.html index e06e79b..bf22f67 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -134,7 +134,7 @@ {% endblock %} -- cgit v1.2.3