aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/list_bills.html
diff options
context:
space:
mode:
authorAlexandre Avenel <avenel.alexandre@gmail.com>2014-07-22 20:19:35 +0200
committerAlexandre Avenel <avenel.alexandre@gmail.com>2014-07-22 20:19:35 +0200
commit79f24b7cb812f0fa0aa1b4bb82d23cbae87d540e (patch)
treee2e90889ba2ab4ece2531bf612fb7e97204c3d75 /budget/templates/list_bills.html
parent9236c132134891c8255da5fd744f045c86e083fe (diff)
downloadihatemoney-mirror-79f24b7cb812f0fa0aa1b4bb82d23cbae87d540e.zip
ihatemoney-mirror-79f24b7cb812f0fa0aa1b4bb82d23cbae87d540e.tar.gz
ihatemoney-mirror-79f24b7cb812f0fa0aa1b4bb82d23cbae87d540e.tar.bz2
Format numbers in templates
Diffstat (limited to 'budget/templates/list_bills.html')
-rw-r--r--budget/templates/list_bills.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index ee97624..f9d372a 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -73,8 +73,8 @@
<form class="action reactivate" action="{{ url_for(".reactivate", member_id=member.id) }}" method="POST">
<button type="submit">{{ _("reactivate") }}</button></form></td>
{% endif %}
- <td class="balance-value {% if balance[member] > 0 %}positive{% elif balance[member.id] < 0 %}negative{% endif %}">
- {% if balance[member.id] > 0 %}+{% endif %}{{ balance[member.id] }}
+ <td class="balance-value {% if balance[member.id] > 0 %}positive{% elif balance[member.id] < 0 %}negative{% endif %}">
+ {% if balance[member.id] > 0 %}+{% endif %}{{ "%.2f" | format(balance[member.id]) }}
</td>
</tr>
{% endfor %}