mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
iterate also on deactivated people, show them if they owe or should receive money
This commit is contained in:
parent
5550e18cfd
commit
e97d460a4a
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,8 @@
|
||||||
|
|
||||||
<table class="balance">
|
<table class="balance">
|
||||||
{% set balance = g.project.get_balance() %}
|
{% set balance = g.project.get_balance() %}
|
||||||
{% for member in g.project.active_members %}
|
{% for member in g.project.members %}
|
||||||
|
{% if member.activated or balance[member] != 0 %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ member.name }}</td>
|
<td>{{ member.name }}</td>
|
||||||
<td class="{% if balance[member] > 0 %}positive{% elif balance[member] < 0 %}negative{% endif %}">
|
<td class="{% if balance[member] > 0 %}positive{% elif balance[member] < 0 %}negative{% endif %}">
|
||||||
|
@ -49,6 +50,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td> <a class="remove" href="{{ url_for("remove_member", member_id=member.id) }}">delete</a></td>
|
<td> <a class="remove" href="{{ url_for("remove_member", member_id=member.id) }}">delete</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue