Improved template for when no reports are found

This commit is contained in:
Jeremy Stretch 2017-10-11 13:30:38 -04:00
parent 043f2cb214
commit 51194e20f2

View File

@ -5,6 +5,7 @@
<h1>{% block title %}Reports{% endblock %}</h1>
<div class="row">
<div class="col-md-9">
{% if reports %}
{% for module, module_reports in reports %}
<h3><a name="module.{{ module }}"></a>{{ module|bettertitle }}</h3>
<table class="table table-hover table-headings reports">
@ -49,8 +50,14 @@
</tbody>
</table>
{% endfor %}
{% else %}
<div class="alert alert-info">
<strong>No reports found.</strong>
</div>
{% endif %}
</div>
<div class="col-md-3">
{% if reports %}
<div class="panel panel-default">
{% for module, module_reports in reports %}
<div class="panel-heading">
@ -68,6 +75,7 @@
</ul>
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endblock %}