1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

58 lines
2.7 KiB
HTML
Raw Normal View History

2017-09-21 16:32:05 -04:00
{% extends '_base.html' %}
{% load helpers %}
{% block content %}
<h1>Reports</h1>
<div class="row">
<div class="col-md-9">
{% for module, module_reports in reports %}
<h3>{{ module|bettertitle }}</h3>
<table class="table table-hover">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Last Run</th>
<th class="text-right">Status</th>
</tr>
</thead>
<tbody>
{% for report in module_reports %}
<tr>
<td>{{ report.name }}</td>
<td>{{ report.description|default:"" }}</td>
{% if report.results %}
<td>{{ report.results.created }}</td>
<td class="text-right">
{% if report.results.failed %}
<label class="label label-danger">Failed</label>
{% else %}
<label class="label label-success">Passed</label>
{% endif %}
</td>
{% else %}
<td class="text-muted">Never</td>
<td class="text-muted text-right">&mdash;</td>
{% endif %}
</tr>
{% for method, stats in report.results.data.items %}
<tr>
<td colspan="4">
<div class="pull-right">
<label class="label label-success">{{ stats.success }}</label>
<label class="label label-info">{{ stats.info }}</label>
<label class="label label-warning">{{ stats.warning }}</label>
<label class="label label-danger">{{ stats.failed }}</label>
</div>
<span style="font-family: monospace">{{ method }}</span>
</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
2017-09-21 16:32:05 -04:00
{% endfor %}
</div>
</div>
{% endblock %}