From e10ea6c776339342dae098524742722c99d6b2bf Mon Sep 17 00:00:00 2001 From: Glandos Date: Thu, 21 May 2020 20:47:56 +0200 Subject: Add a unified balance table for all sidebar pages (#618) --- ihatemoney/templates/list_bills.html | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'ihatemoney/templates/list_bills.html') diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 7ae3bd6..1f4235b 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -45,31 +45,7 @@
- - {% set balance = g.project.balance %} - {% for member in g.project.members | sort(attribute='name') if member.activated or balance[member.id]|round(2) != 0 %} - - - {% if member.activated %} - - {% else %} - - {% endif %} - - - {% endfor %} -
{{ member.name }} - (x{{ member.weight|minimal_round(1) }}) - -
-
-
-
-
-
-
- {% if balance[member.id]|round(2) > 0 %}+{% endif %}{{ "%.2f" | format(balance[member.id]) }} -
+ {{ balance_table(member_edit=True) }}
-- cgit v1.1