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/history.html | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'ihatemoney/templates/history.html') diff --git a/ihatemoney/templates/history.html b/ihatemoney/templates/history.html index 9cf66a7..d9f2b4d 100644 --- a/ihatemoney/templates/history.html +++ b/ihatemoney/templates/history.html @@ -98,23 +98,7 @@ {% block sidebar %}
- - - - - - - - {% set balance = g.project.balance %} - {% for member in g.project.members | sort(attribute='name') if member.activated or balance[member.id]|round(2) != 0 %} - - - - - {% endfor %} -
{{ _("Who?") }}{{ _("Balance") }}
{{ member.name }} - {% if balance[member.id]|round(2) > 0 %}+{% endif %}{{ "%.2f" | format(balance[member.id]) }} -
+ {{ balance_table(show_weight=False, show_header=True) }}
{% endblock %} -- cgit v1.1