diff --git a/netbox/templates/extras/inc/report_label.html b/netbox/templates/extras/inc/report_label.html
new file mode 100644
index 000000000..8e2a2a5b5
--- /dev/null
+++ b/netbox/templates/extras/inc/report_label.html
@@ -0,0 +1,7 @@
+{% if report.results.failed %}
+
+{% elif report.results %}
+
+{% else %}
+
+{% endif %}
diff --git a/netbox/templates/extras/report_list.html b/netbox/templates/extras/report_list.html
index 1b987c520..492da8b75 100644
--- a/netbox/templates/extras/report_list.html
+++ b/netbox/templates/extras/report_list.html
@@ -2,12 +2,12 @@
{% load helpers %}
{% block content %}
-
Reports
+ {% block title %}Reports{% endblock %}
{% for module, module_reports in reports %}
-
{{ module|bettertitle }}
-
+ {{ module|bettertitle }}
+
Name |
@@ -19,25 +19,18 @@
{% for report in module_reports %}
- {{ report.name }} |
+ {{ report.name }} |
{{ report.description|default:"" }} |
{% if report.results %}
{{ report.results.created }} |
-
- {% if report.results.failed %}
-
- {% else %}
-
- {% endif %}
- |
{% else %}
Never |
- — |
{% endif %}
+ {% include 'extras/inc/report_label.html' %} |
{% for method, stats in report.results.data.items %}
-
+ |
@@ -46,6 +39,7 @@
{{ method }}
|
+ |
{% endfor %}
{% endfor %}
@@ -53,5 +47,20 @@
{% endfor %}
+
{% endblock %}