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') }} -