From 09653d7415d916477cd82b0e7d9ed42e3a6bcc11 Mon Sep 17 00:00:00 2001 From: sstent Date: Sun, 11 Jan 2026 08:11:39 -0800 Subject: [PATCH] fixing daily track format and adding macro balance to tracker --- templates/tracker.html | 124 +++++++++++++++++++++-------------------- 1 file changed, 65 insertions(+), 59 deletions(-) diff --git a/templates/tracker.html b/templates/tracker.html index b7c9f11..0a8f785 100644 --- a/templates/tracker.html +++ b/templates/tracker.html @@ -243,50 +243,61 @@
-
-
+ +
+
{{ "%.0f"|format(day_totals.calories) }}
Calories
-
-
- {{ "%.1f"|format(day_totals.protein) }}g -
Protein ({{ day_totals.protein_pct }}%)
-
-
-
-
- {{ "%.1f"|format(day_totals.carbs) }}g -
Carbs ({{ day_totals.carbs_pct }}%)
-
-
-
-
- {{ "%.1f"|format(day_totals.fat) }}g -
Fat ({{ day_totals.fat_pct }}%)
-
-
-
-
- {{ "%.1f"|format(day_totals.fiber) }}g -
Fiber
-
-
-
-
+
+
{{ "%.1f"|format(day_totals.net_carbs) }}g
Net Carbs
-
-
+ + +
+
+ {{ "%.1f"|format(day_totals.carbs) + }}g +
Carbs
+
{{ day_totals.carbs_pct }}%
+
+
+
+
+ {{ "%.1f"|format(day_totals.fat) + }}g +
Fat
+
{{ day_totals.fat_pct }}%
+
+
+
+
+ {{ "%.1f"|format(day_totals.protein) + }}g +
Protein
+
{{ day_totals.protein_pct }}%
+
+
+ + +
+
{{ "%.0f"|format(day_totals.sugar) }}g
Sugar
-
-
+
+
+ {{ "%.1f"|format(day_totals.fiber) }}g +
Fiber
+
+
+
+
{{ "%.0f"|format(day_totals.sodium) }}mg
Sodium
@@ -301,38 +312,33 @@
Macro Balance
-
-
- Protein - {{ day_totals.protein_pct }}% -
-
-
-
+ +
+
Carbs
+
Fat
+
Protein
-
-
- Carbs - {{ day_totals.carbs_pct }}% -
-
-
-
+ + +
+
+
+
-
-
- Fat - {{ day_totals.fat_pct }}% + + +
+
{{ day_totals.carbs_pct }}%
-
-
+
{{ day_totals.fat_pct }}%
+
{{ day_totals.protein_pct + }}%