From 5ec3dc0accbd5d66caa0abde249e69d35afc68e8 Mon Sep 17 00:00:00 2001 From: Glandos Date: Thu, 20 Feb 2020 09:43:50 +0100 Subject: Align tables in statistics (#535) * Align tables in statistics The table in sidebar is now aligned with the one in content, to avoid redundant informations. All tables are back to normal on small devices. * fix test * run black on tests --- ihatemoney/templates/statistics.html | 63 +++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 30 deletions(-) (limited to 'ihatemoney/templates') diff --git a/ihatemoney/templates/statistics.html b/ihatemoney/templates/statistics.html index 539781f..7321188 100644 --- a/ihatemoney/templates/statistics.html +++ b/ihatemoney/templates/statistics.html @@ -1,12 +1,14 @@ {% extends "sidebar_table_layout.html" %} {% block sidebar %} -
+
- - - - + + + + + + {% for stat in members_stats| sort(attribute='member.name') %} @@ -21,30 +23,31 @@ {% block content %} -

{{ _("Balance") }}

-
{{ _("Balance") }}
{{ _("Who?") }}{{ _("Balance") }}
{{ stat.member.name }}
- - - {% for stat in members_stats %} - - - - - - {% endfor %} - -
{{ _("Who?") }}{{ _("Paid") }}{{ _("Spent") }}
{{ stat.member.name }}{{ "%0.2f"|format(stat.paid) }}{{ "%0.2f"|format(stat.spent) }}
-

{{ _("Expenses by Month") }}

- - - - {% for month in months %} - - - - - {% endfor %} - -
{{ _("Period") }}{{ _("Spent") }}
{{ _(month.strftime("%B")) }} {{ month.year }}{{ "%0.2f"|format(monthly_stats[month.year][month.month]) }}
+
+ + + + {% for stat in members_stats %} + + + + + + {% endfor %} + +
{{ _("Who?") }}{{ _("Paid") }}{{ _("Spent") }}
{{ stat.member.name }}{{ "%0.2f"|format(stat.paid) }}{{ "%0.2f"|format(stat.spent) }}
+

{{ _("Expenses by Month") }}

+ + + + {% for month in months %} + + + + + {% endfor %} + +
{{ _("Period") }}{{ _("Spent") }}
{{ _(month.strftime("%B")) }} {{ month.year }}{{ "%0.2f"|format(monthly_stats[month.year][month.month]) }}
+
{% endblock %} -- cgit v1.1