From 2cadead38105678e9ff913e9c99ed8c7da2a21a9 Mon Sep 17 00:00:00 2001 From: Tinmn Date: Sat, 26 Nov 2011 14:24:48 +0100 Subject: [PATCH] Members are now sorted by name in the balance. --- budget/templates/list_bills.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 192e200..3b33fb8 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -137,15 +137,13 @@
{% set balance = g.project.balance %} - {% for member in g.project.members %} - {% if member.activated or balance[member.id] != 0 %} + {% for member in g.project.members | sort(attribute='name') if member.activated or balance[member.id] != 0 %} - {% endif %} {% endfor %}
{{ member.name }} {% if balance[member.id] > 0 %}+{% endif %}{{ balance[member.id] }}