diff --git a/budget/templates/dashboard.html b/budget/templates/dashboard.html index e9c92dd7..3f50915a 100644 --- a/budget/templates/dashboard.html +++ b/budget/templates/dashboard.html @@ -1,20 +1,21 @@ {% extends "layout.html" %} {% block content %} - +
- {% for project in projects %} - - -{% if project.has_bills() %} - - -{% else %} - - -{% endif %} - - {% endfor %} + {% 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")}}
{{ project.name }}{{ project.members | count }}{{ project.get_bills().count() }}{{ project.get_bills().all()[0].date }}{{ project.get_bills().all()[-1].date }}
{{ project.name }}{{ project.members | count }}{{ project.get_bills().count() }}{{ project.get_bills().all()[0].date }}{{ project.get_bills().all()[-1].date }}
{% endblock %}