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 %}
{{ _("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() }} | {% if project.has_bills() %} -{{ project.get_bills().all()[0].date }} | -{{ project.get_bills().all()[-1].date }} | +{{ project.get_bills().all()[0].date }} | +{{ project.get_bills().all()[-1].date }} | {% else %} -- | + | + | {% endif %} - | + | {{ _('edit') }} {{ _('delete') }} - | +