aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ihatemoney/templates')
-rw-r--r--ihatemoney/templates/list_bills.html2
-rw-r--r--ihatemoney/templates/settle_bills.html2
-rw-r--r--ihatemoney/templates/sidebar_table_layout.html2
-rw-r--r--ihatemoney/templates/statistics.html6
4 files changed, 6 insertions, 6 deletions
diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html
index 1f4235b..487e70e 100644
--- a/ihatemoney/templates/list_bills.html
+++ b/ihatemoney/templates/list_bills.html
@@ -1,7 +1,7 @@
{% extends "sidebar_table_layout.html" %}
{%- macro bill_amount(bill, currency=bill.original_currency, amount=bill.amount) %}
- {{ amount|currencyformat_nc(currency) }} ({{ _("%(amount)s each", amount=bill.pay_each_default(amount)|currencyformat_nc(currency)) }})
+ {{ amount|currency(currency) }} ({{ _("%(amount)s each", amount=bill.pay_each_default(amount)|currency(currency)) }})
{% endmacro -%}
{% block title %} - {{ g.project.name }}{% endblock %}
diff --git a/ihatemoney/templates/settle_bills.html b/ihatemoney/templates/settle_bills.html
index a9b0dbc..601156c 100644
--- a/ihatemoney/templates/settle_bills.html
+++ b/ihatemoney/templates/settle_bills.html
@@ -15,7 +15,7 @@
<tr receiver={{bill.receiver.id}}>
<td>{{ bill.ower }}</td>
<td>{{ bill.receiver }}</td>
- <td>{{ bill.amount|currencyformat_nc(g.project.default_currency) }}</td>
+ <td>{{ bill.amount|currency }}</td>
</tr>
{% endfor %}
</tbody>
diff --git a/ihatemoney/templates/sidebar_table_layout.html b/ihatemoney/templates/sidebar_table_layout.html
index d616e68..b25a3d6 100644
--- a/ihatemoney/templates/sidebar_table_layout.html
+++ b/ihatemoney/templates/sidebar_table_layout.html
@@ -37,7 +37,7 @@
{%- endif %}
{%- endif %}
<td class="balance-value {% if balance[member.id]|round(2) > 0 %}positive{% elif balance[member.id]|round(2) < 0 %}negative{% endif %}">
- {% if balance[member.id] | round(2) > 0 %}+{% endif %}{{ balance[member.id]|currencyformat_nc(g.project.default_currency) }}
+ {% if balance[member.id] | round(2) > 0 %}+{% endif %}{{ balance[member.id]|currency }}
</td>
</tr>
{%- endfor %}
diff --git a/ihatemoney/templates/statistics.html b/ihatemoney/templates/statistics.html
index 3b0a9dd..9e7a10d 100644
--- a/ihatemoney/templates/statistics.html
+++ b/ihatemoney/templates/statistics.html
@@ -15,8 +15,8 @@
{% for stat in members_stats|sort(attribute='member.name') %}
<tr>
<td class="d-md-none">{{ stat.member.name }}</td>
- <td>{{ stat.paid|currencyformat_nc(g.project.default_currency) }}</td>
- <td>{{ stat.spent|currencyformat_nc(g.project.default_currency) }}</td>
+ <td>{{ stat.paid|currency }}</td>
+ <td>{{ stat.spent|currency }}</td>
</tr>
{% endfor %}
</tbody>
@@ -28,7 +28,7 @@
{% for month in months %}
<tr>
<td>{{ _(month.strftime("%B")) }} {{ month.year }}</td>
- <td>{{ monthly_stats[month.year][month.month]|currencyformat_nc(g.project.default_currency) }}</td>
+ <td>{{ monthly_stats[month.year][month.month]|currency }}</td>
</tr>
{% endfor %}
</tbody>