Reverted some formatting changes to dashboard.html that broke CI.

This commit is contained in:
bmatt 2020-02-25 04:50:54 +00:00
parent 2d8215dd28
commit 252f9f7d1b

View file

@ -2,32 +2,20 @@
{% block content %}
{% if is_admin_dashboard_activated %}
<table id="bill_table" class="table table-striped">
<thead>
<tr>
<th>{{ _("Project") }}</th>
<th>{{ _("Number of members") }}</th>
<th>{{ _("Number of bills") }}</th>
<th>{{_("Newest bill")}}</th>
<th>{{_("Oldest bill")}}</th>
<th>{{_("Actions")}}</th>
</tr>
</thead>
<thead><tr><th>{{ _("Project") }}</th><th>{{ _("Number of members") }}</th><th>{{ _("Number of bills") }}</th><th>{{_("Newest bill")}}</th><th>{{_("Oldest bill")}}</th><th>{{_("Actions")}}</th></tr></thead>
<tbody>{% for project in projects|sort(attribute='name') %}
<tr>
<td>{{ project.name }}</td>
<td>{{ project.members | count }}</td>
<td>{{ project.get_bills().count() }}</td>
<tr><td>{{ project.name }}</td><td>{{ project.members | count }}</td><td>{{ project.get_bills().count() }}</td>
{% if project.has_bills() %}
<td>{{ project.get_bills().all()[0].date }}</td>
<td>{{ project.get_bills().all()[-1].date }}</td>
<td>{{ project.get_bills().all()[0].date }}</td>
<td>{{ project.get_bills().all()[-1].date }}</td>
{% else %}
<td></td>
<td></td>
<td></td>
<td></td>
{% endif %}
<td class="project-actions">
<td class="project-actions">
<a class="edit" href="{{ url_for(".edit_project", project_id=project.id) }}" title="{{ _("edit") }}">{{ _('edit') }}</a>
<a class="delete" href="{{ url_for(".delete_project", project_id=project.id) }}" title="{{ _("delete") }}">{{ _('delete') }}</a>
</td>
</td>
</tr>
{% endfor %}
</tbody>