aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/statistics.html
diff options
context:
space:
mode:
authorGlandos <bugs-github@antipoul.fr>2020-05-21 20:47:56 +0200
committerGitHub <noreply@github.com>2020-05-21 20:47:56 +0200
commite10ea6c776339342dae098524742722c99d6b2bf (patch)
tree7eb768145e8c110444a6f11b0f6dd7bb5020be9f /ihatemoney/templates/statistics.html
parent3f46beade39d545a9421be140004222b6ee8146d (diff)
downloadihatemoney-mirror-e10ea6c776339342dae098524742722c99d6b2bf.zip
ihatemoney-mirror-e10ea6c776339342dae098524742722c99d6b2bf.tar.gz
ihatemoney-mirror-e10ea6c776339342dae098524742722c99d6b2bf.tar.bz2
Add a unified balance table for all sidebar pages (#618)
Diffstat (limited to 'ihatemoney/templates/statistics.html')
-rw-r--r--ihatemoney/templates/statistics.html17
1 files changed, 1 insertions, 16 deletions
diff --git a/ihatemoney/templates/statistics.html b/ihatemoney/templates/statistics.html
index af3d9d5..3b0a9dd 100644
--- a/ihatemoney/templates/statistics.html
+++ b/ihatemoney/templates/statistics.html
@@ -2,22 +2,7 @@
{% block sidebar %}
<div id="table_overflow" class="statistics mr-md-n3">
- <table class="balance table">
- <thead>
- <tr class="d-none d-md-table-row">
- <th>{{ _("Who?") }}</th>
- <th class="balance-value">{{ _("Balance") }}</th>
- </tr>
- </thead>
- {% for stat in members_stats|sort(attribute='member.name') %}
- <tr>
- <td class="balance-name">{{ stat.member.name }}</td>
- <td class="balance-value {% if stat.balance|round(2) > 0 %}positive{% elif stat.balance|round(2) < 0 %}negative{% endif %}">
- {% if stat.balance|round(2) > 0 %}+{% endif %}{{ "%.2f" | format(stat.balance) }}
- </td>
- </tr>
- {% endfor %}
- </table>
+ {{ balance_table(show_weight=False, show_header=True) }}
</div>
{% endblock %}