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/statistics.html | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'ihatemoney/templates/statistics.html') diff --git a/ihatemoney/templates/statistics.html b/ihatemoney/templates/statistics.html index af3d9d5..3b0a9dd 100644 --- a/ihatemoney/templates/statistics.html +++ b/ihatemoney/templates/statistics.html @@ -2,22 +2,7 @@ {% block sidebar %}
- - - - - - - - {% for stat in members_stats|sort(attribute='member.name') %} - - - - - {% endfor %} -
{{ _("Who?") }}{{ _("Balance") }}
{{ stat.member.name }} - {% if stat.balance|round(2) > 0 %}+{% endif %}{{ "%.2f" | format(stat.balance) }} -
+ {{ balance_table(show_weight=False, show_header=True) }}
{% endblock %} -- cgit v1.1