aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/list_bills.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-10-18 23:26:13 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-10-18 23:26:13 +0200
commit6f4f04b11756086fa4ace404d4f00c856dc6f157 (patch)
treec5cb1261cb570a6ef59e0fb76279dc2949196eda /budget/templates/list_bills.html
parent4e1819523f50114ce5e3f0524fc27eb85701da37 (diff)
downloadihatemoney-mirror-6f4f04b11756086fa4ace404d4f00c856dc6f157.zip
ihatemoney-mirror-6f4f04b11756086fa4ace404d4f00c856dc6f157.tar.gz
ihatemoney-mirror-6f4f04b11756086fa4ace404d4f00c856dc6f157.tar.bz2
Document the API. Fix #46
Diffstat (limited to 'budget/templates/list_bills.html')
-rw-r--r--budget/templates/list_bills.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index d163f7e..e284eff 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -56,13 +56,13 @@
<h2>{{ _("Balance") }}</h2>
<table class="balance">
- {% set balance = g.project.get_balance() %}
+ {% set balance = g.project.balance %}
{% for member in g.project.members %}
- {% if member.activated or balance[member] != 0 %}
+ {% if member.activated or balance[member.id] != 0 %}
<tr>
<td>{{ member.name }}</td>
- <td class="{% if balance[member] > 0 %}positive{% elif balance[member] < 0 %}negative{% endif %}">
- {% if balance[member] > 0 %}+{% endif %}{{ balance[member] }}
+ <td class="{% if balance[member.id] > 0 %}positive{% elif balance[member.id] < 0 %}negative{% endif %}">
+ {% if balance[member.id] > 0 %}+{% endif %}{{ balance[member.id] }}
</td>
<td> {% if member.activated %}<a class="remove" href="{{ url_for(".remove_member", member_id=member.id) }}">{{ _("delete") }}</a>{% else %}<a href="{{ url_for(".reactivate", member_id=member.id) }}">{{ _("reactivate") }}</a>{% endif %}</td>
</tr>