From f97e04df55da8d61a888919f28d632aac020dc59 Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Sun, 3 Nov 2024 15:35:01 +0000 Subject: [PATCH] only show expiring accounts if any exist --- templates/home.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/templates/home.html b/templates/home.html index 7cad5de..f59e688 100644 --- a/templates/home.html +++ b/templates/home.html @@ -30,12 +30,14 @@ - -
-

Welcome {{ username }}!

-
-

You have {{accounts|length}} active accounts

-
+ +
+

Welcome {{ username }}!

+
+

You have {{ accounts|length }} active accounts

+
+ + {% if current_month_accounts %}

Accounts Expiring This Month

@@ -55,7 +57,9 @@ {% endfor %}
-
+ {% endif %} +
+