From 252f9f7d1bcffc98e05d56c463fec9217d839350 Mon Sep 17 00:00:00 2001 From: bmatt Date: Tue, 25 Feb 2020 04:50:54 +0000 Subject: [PATCH] Reverted some formatting changes to dashboard.html that broke CI. --- ihatemoney/templates/dashboard.html | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/ihatemoney/templates/dashboard.html b/ihatemoney/templates/dashboard.html index c2d7c6df..5cf17877 100644 --- a/ihatemoney/templates/dashboard.html +++ b/ihatemoney/templates/dashboard.html @@ -2,32 +2,20 @@ {% block content %} {% if is_admin_dashboard_activated %} - - - - - - - - - - + {% for project in projects|sort(attribute='name') %} - - - - + {% if project.has_bills() %} - - + + {% else %} - - + + {% endif %} - + {% endfor %}
{{ _("Project") }}{{ _("Number of members") }}{{ _("Number of bills") }}{{_("Newest bill")}}{{_("Oldest bill")}}{{_("Actions")}}
{{ _("Project") }}{{ _("Number of members") }}{{ _("Number of bills") }}{{_("Newest bill")}}{{_("Oldest bill")}}{{_("Actions")}}
{{ project.name }}{{ project.members | count }}{{ project.get_bills().count() }}
{{ project.name }}{{ project.members | count }}{{ project.get_bills().count() }}{{ project.get_bills().all()[0].date }}{{ project.get_bills().all()[-1].date }}{{ project.get_bills().all()[0].date }}{{ project.get_bills().all()[-1].date }} + {{ _('edit') }} {{ _('delete') }} -