diff --git a/app/templates/net_worth/net_worth.html b/app/templates/net_worth/net_worth.html index 58b02d9..d694657 100644 --- a/app/templates/net_worth/net_worth.html +++ b/app/templates/net_worth/net_worth.html @@ -9,238 +9,278 @@ {% block title %}{% translate 'Net Worth' %}{% endblock %} {% block content %} -
-
-
-
-
-
-
+
+
+
+
+
+
- -
-
-
{% translate 'By currency' %}
- {% for currency in currency_net_worth.values %} -
-
-
{{ currency.currency.name }}
+ +
+
+
{% translate 'By currency' %}
+ {% for currency in currency_net_worth.values %} +
+
+
+ {{ currency.currency.name }} +
+ :amount="currency.total_current" + :prefix="currency.currency.prefix" + :suffix="currency.currency.suffix" + :decimal_places="currency.currency.decimal_places" + color="{% if currency.total_current > 0 %}green{% elif currency.total_current < 0 %}red{% endif %}" + text-end>
+
-
- {% if currency.exchanged and currency.exchanged.total_current %} -
- + +
+ {% endif %} + {% endfor %} +
+
+
+
+
+
+ +
+
+
{% translate 'By account' %}
+ {% 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 %} +
+
+ +
+
+ +
+
+
+ {% 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 %}
- {% endif %} - {% endfor %}
-
-
-
- -
-
-
{% translate 'By account' %}
- {% 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 %} -
-
-
- {{ account.account.name }}
-
-
- -
-
-
- {% if account.exchanged and account.exchanged.total_final %} - - {% endif %} - {% endfor %} - {% else %} - {% for account in data.list %} -
-
-
{{ account.account.name }}
-
-
- -
-
-
- {% if account.exchanged and account.exchanged.total_final %} - - {% endif %} - {% endfor %} - {% endif %} - {% endfor %} -
-
-
+
+
+ +
-
- - -
-
- - - + + + }); + {% endblock %}