From 32946e116518f55a6b479feb46855fa39f29a53b Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Wed, 3 Dec 2025 19:39:48 +0100 Subject: [PATCH] added redirect to overview page when clicking most recent entry box --- src/baby_monitor/static/index.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/baby_monitor/static/index.html b/src/baby_monitor/static/index.html index c053243..c3e3370 100644 --- a/src/baby_monitor/static/index.html +++ b/src/baby_monitor/static/index.html @@ -547,7 +547,7 @@ // Build diaper card const diaperCard = lastDiaperChange ? ` -
+
๐Ÿงท
Last Diaper
${formatTime(lastDiaperChange.change_time)}
@@ -556,19 +556,19 @@ ${lastDiaperChange.poop_amount && lastDiaperChange.pee_amount ? " โ€ข " : ""} ${lastDiaperChange.pee_amount ? `๐Ÿ’ง ${lastDiaperChange.pee_amount}` : ""}
- + ` : ` -
+
๐Ÿงท
No diaper changes yet
-
+ `; // Build feeding card const feedingCard = lastFeeding ? ` -
+
๐Ÿผ
Last Feeding
${formatTime(lastFeeding.start_time)}
@@ -576,32 +576,32 @@ ${formatFeedingType(lastFeeding.feeding_type)} ${lastFeeding.end_time ? ` โ€ข ${calculateDuration(lastFeeding.start_time, lastFeeding.end_time)}` : " (ongoing)"}
- + ` : ` -
+
๐Ÿผ
No feedings yet
-
+ `; // Build sleep card const sleepCard = lastSleep ? ` -
+
๐Ÿ˜ด
Last Sleep
${formatTime(lastSleep.start_time)}
${lastSleep.end_time ? calculateDuration(lastSleep.start_time, lastSleep.end_time) : "ongoing"}
-
+ ` : ` -
+
๐Ÿ˜ด
No sleep sessions yet
-
+ `; return `