diff options
Diffstat (limited to 'ihatemoney/templates/history.html')
| -rw-r--r-- | ihatemoney/templates/history.html | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/ihatemoney/templates/history.html b/ihatemoney/templates/history.html index 9cf66a7..d9f2b4d 100644 --- a/ihatemoney/templates/history.html +++ b/ihatemoney/templates/history.html @@ -98,23 +98,7 @@ {% block sidebar %} <div id="table_overflow"> - <table class="balance table"> - <thead> - <tr class="d-none d-md-table-row"> - <th>{{ _("Who?") }}</th> - <th class="balance-value">{{ _("Balance") }}</th> - </tr> - </thead> - {% set balance = g.project.balance %} - {% for member in g.project.members | sort(attribute='name') if member.activated or balance[member.id]|round(2) != 0 %} - <tr id="bal-member-{{ member.id }}" action={% if member.activated %}delete{% else %}reactivate{% endif %}> - <td class="balance-name">{{ member.name }}</td> - <td class="balance-value {% if balance[member.id]|round(2) > 0 %}positive{% elif balance[member.id]|round(2) < 0 %}negative{% endif %}"> - {% if balance[member.id]|round(2) > 0 %}+{% endif %}{{ "%.2f" | format(balance[member.id]) }} - </td> - </tr> - {% endfor %} - </table> + {{ balance_table(show_weight=False, show_header=True) }} </div> {% endblock %} |
