aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-10-16 13:59:22 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-10-16 13:59:22 +0200
commit9a3e4537cbd5c3aa8d154fe390749c1c33e5dc12 (patch)
tree9f0c94642580cc64d26ca383b6314885b2b0e5a8
parent2553303fa4b1c17fa8858032fb2be1641bdf48f9 (diff)
downloadihatemoney-mirror-9a3e4537cbd5c3aa8d154fe390749c1c33e5dc12.zip
ihatemoney-mirror-9a3e4537cbd5c3aa8d154fe390749c1c33e5dc12.tar.gz
ihatemoney-mirror-9a3e4537cbd5c3aa8d154fe390749c1c33e5dc12.tar.bz2
Format floats with 2 decimals. Fix #39
-rw-r--r--budget/templates/list_bills.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index e763b03..895bb37 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -83,7 +83,7 @@
<td>{{ bill.payer }}</td>
<td>{{ bill.what }}</td>
<td>{% for ower in bill.owers %}{{ ower.name }} {% endfor %}</td>
- <td>{{ bill.amount }} ({{ bill.pay_each() }} {{ _("each") }})</td>
+ <td>{{ "%0.2f"|format(bill.amount) }} ({{ "%0.2f"|format(bill.pay_each()) }} {{ _("each") }})</td>
<td><a href="{{ url_for(".edit_bill", bill_id=bill.id) }}">{{ _("edit") }}</a>
<a class="delete" href="{{ url_for(".delete_bill", bill_id=bill.id) }}">{{ _("delete") }}</a></td>
</tr>