aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates
diff options
context:
space:
mode:
authorGlandos <bugs-github@antipoul.fr>2020-05-10 23:05:48 +0200
committerGitHub <noreply@github.com>2020-05-10 23:05:48 +0200
commitca7c3d5452b85592e76e3ee2bef7bfedd695d3e4 (patch)
treef129c19fcca9123cdae886f89d4fcc0b2e13aab9 /ihatemoney/templates
parentb9672d9e15fb8feeb21134869f7ce8c4b1087808 (diff)
downloadihatemoney-mirror-ca7c3d5452b85592e76e3ee2bef7bfedd695d3e4.zip
ihatemoney-mirror-ca7c3d5452b85592e76e3ee2bef7bfedd695d3e4.tar.gz
ihatemoney-mirror-ca7c3d5452b85592e76e3ee2bef7bfedd695d3e4.tar.bz2
use currency format everywhere (#619)
This should unify the number formats, along with #618
Diffstat (limited to 'ihatemoney/templates')
-rw-r--r--ihatemoney/templates/settle_bills.html2
-rw-r--r--ihatemoney/templates/statistics.html6
2 files changed, 4 insertions, 4 deletions
diff --git a/ihatemoney/templates/settle_bills.html b/ihatemoney/templates/settle_bills.html
index 7ec5e29..30f64d0 100644
--- a/ihatemoney/templates/settle_bills.html
+++ b/ihatemoney/templates/settle_bills.html
@@ -25,7 +25,7 @@
<tr receiver={{bill.receiver.id}}>
<td>{{ bill.ower }}</td>
<td>{{ bill.receiver }}</td>
- <td>{{ "%0.2f"|format(bill.amount) }}</td>
+ <td>{{ bill.amount|currencyformat_nc(g.project.default_currency) }}</td>
</tr>
{% endfor %}
</tbody>
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') %}
<tr>
<td class="d-md-none">{{ stat.member.name }}</td>
- <td>{{ "%0.2f"|format(stat.paid) }}</td>
- <td>{{ "%0.2f"|format(stat.spent) }}</td>
+ <td>{{ stat.paid|currencyformat_nc(g.project.default_currency) }}</td>
+ <td>{{ stat.spent|currencyformat_nc(g.project.default_currency) }}</td>
</tr>
{% endfor %}
</tbody>
@@ -43,7 +43,7 @@
{% for month in months %}
<tr>
<td>{{ _(month.strftime("%B")) }} {{ month.year }}</td>
- <td>{{ "%0.2f"|format(monthly_stats[month.year][month.month]) }}</td>
+ <td>{{ monthly_stats[month.year][month.month]|currencyformat_nc(g.project.default_currency) }}</td>
</tr>
{% endfor %}
</tbody>