1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

don't display delete link if the user is deactivated

This commit is contained in:
Alexis Metaireau 2011-08-22 23:30:48 +02:00
parent e0a40a0c7c
commit 1ccfa8a07d

View file

@ -48,7 +48,7 @@
<td class="{% if balance[member] > 0 %}positive{% elif balance[member] < 0 %}negative{% endif %}">
{% if balance[member] > 0 %}+{% endif %}{{ balance[member] }}
</td>
<td> <a class="remove" href="{{ url_for("remove_member", member_id=member.id) }}">delete</a></td>
<td> {% if member.activated %}<a class="remove" href="{{ url_for("remove_member", member_id=member.id) }}">delete</a>{% endif %}</td>
</tr>
{% endif %}
{% endfor %}