mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Prettied up the reports list
This commit is contained in:
parent
9a1781e6e7
commit
696d91daa3
@ -338,6 +338,18 @@ table.component-list tr.ipaddress:hover td {
|
|||||||
background-color: #e6f7f7;
|
background-color: #e6f7f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reports */
|
||||||
|
table.reports td.method {
|
||||||
|
font-family: monospace;
|
||||||
|
padding-left: 30px;
|
||||||
|
}
|
||||||
|
table.reports td.stats label {
|
||||||
|
display: inline-block;
|
||||||
|
line-height: 14px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
min-width: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
/* AJAX loader */
|
/* AJAX loader */
|
||||||
.loading {
|
.loading {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -7,39 +7,43 @@
|
|||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
{% for module, module_reports in reports %}
|
{% for module, module_reports in reports %}
|
||||||
<h3><a name="module.{{ module }}"></a>{{ module|bettertitle }}</h3>
|
<h3><a name="module.{{ module }}"></a>{{ module|bettertitle }}</h3>
|
||||||
<table class="table table-hover table-headings">
|
<table class="table table-hover table-headings reports">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
|
<th>Status</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Last Run</th>
|
<th>Last Run</th>
|
||||||
<th class="text-right">Status</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for report in module_reports %}
|
{% for report in module_reports %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a name="report.{{ report.name }}"></a><strong>{{ report.name }}</strong></td>
|
<td>
|
||||||
|
<a name="report.{{ report.name }}"></a>
|
||||||
|
<strong>{{ report.name }}</strong>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{% include 'extras/inc/report_label.html' %}
|
||||||
|
</td>
|
||||||
<td>{{ report.description|default:"" }}</td>
|
<td>{{ report.description|default:"" }}</td>
|
||||||
{% if report.results %}
|
{% if report.results %}
|
||||||
<td>{{ report.results.created }}</td>
|
<td>{{ report.results.created }}</td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td class="text-muted">Never</td>
|
<td class="text-muted">Never</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td class="text-right">{% include 'extras/inc/report_label.html' %}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% for method, stats in report.results.data.items %}
|
{% for method, stats in report.results.data.items %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" style="padding-left: 40px">
|
<td colspan="3" class="method">
|
||||||
<div class="pull-right">
|
{{ method }}
|
||||||
<label class="label label-success">{{ stats.success }}</label>
|
</td>
|
||||||
<label class="label label-info">{{ stats.info }}</label>
|
<td class="text-right stats">
|
||||||
<label class="label label-warning">{{ stats.warning }}</label>
|
<label class="label label-success">{{ stats.success }}</label>
|
||||||
<label class="label label-danger">{{ stats.failed }}</label>
|
<label class="label label-info">{{ stats.info }}</label>
|
||||||
</div>
|
<label class="label label-warning">{{ stats.warning }}</label>
|
||||||
<span style="font-family: monospace">{{ method }}</span>
|
<label class="label label-danger">{{ stats.failed }}</label>
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user