From a90b188e3294dc5ce2aced9c22b17af8ea664a79 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Fri, 27 Dec 2024 01:49:43 -0300 Subject: [PATCH] fix(networth): random broken rendering for charts when changing pages with htmx --- app/templates/net_worth/net_worth.html | 357 +++++++++++++------------ 1 file changed, 183 insertions(+), 174 deletions(-) diff --git a/app/templates/net_worth/net_worth.html b/app/templates/net_worth/net_worth.html index 43fb68e..3997a02 100644 --- a/app/templates/net_worth/net_worth.html +++ b/app/templates/net_worth/net_worth.html @@ -14,7 +14,8 @@
- + {% for currency in currency_net_worth.values %}
@@ -49,75 +50,76 @@
- - {% regroup account_net_worth.values by account.group as account_data %} - {% for data in account_data %} - {% if data.grouper %} + + {% regroup account_net_worth.values by account.group as account_data %} + {% for data in account_data %} + {% if data.grouper %} +
+
+
+ {{ data.grouper }}
+
+
+ {% for account in data.list %}
-
- {{ data.grouper }}
+ +
+
+ +
- {% for account in data.list %} -
-
- -
-
- -
+ {% if account.exchanged and account.exchanged.total_final %} + + {% endif %} + {% endfor %} + {% else %} + {% for account in data.list %} +
+
+ +
+
+
- {% if account.exchanged and account.exchanged.total_final %} - - {% endif %} - {% endfor %} - {% else %} - {% for account in data.list %} -
-
- -
-
- -
-
-
- {% if account.exchanged and account.exchanged.total_final %} - - {% endif %} - {% endfor %} - {% endif %} - {% endfor %} - +
+ {% if account.exchanged and account.exchanged.total_final %} + + {% endif %} + {% endfor %} + {% endif %} + {% endfor %} +
@@ -133,149 +135,156 @@
{% endblock %}