From ca7c3d5452b85592e76e3ee2bef7bfedd695d3e4 Mon Sep 17 00:00:00 2001 From: Glandos Date: Sun, 10 May 2020 23:05:48 +0200 Subject: use currency format everywhere (#619) This should unify the number formats, along with #618 --- ihatemoney/templates/statistics.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ihatemoney/templates/statistics.html') diff --git a/ihatemoney/templates/statistics.html b/ihatemoney/templates/statistics.html index b38abb1..af3d9d5 100644 --- a/ihatemoney/templates/statistics.html +++ b/ihatemoney/templates/statistics.html @@ -30,8 +30,8 @@ {% for stat in members_stats|sort(attribute='member.name') %} {{ stat.member.name }} - {{ "%0.2f"|format(stat.paid) }} - {{ "%0.2f"|format(stat.spent) }} + {{ stat.paid|currencyformat_nc(g.project.default_currency) }} + {{ stat.spent|currencyformat_nc(g.project.default_currency) }} {% endfor %} @@ -43,7 +43,7 @@ {% for month in months %} {{ _(month.strftime("%B")) }} {{ month.year }} - {{ "%0.2f"|format(monthly_stats[month.year][month.month]) }} + {{ monthly_stats[month.year][month.month]|currencyformat_nc(g.project.default_currency) }} {% endfor %} -- cgit v1.1