From 88c57d002d6d499e5f801c4d068c3d6695565b23 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 25 Sep 2017 16:22:50 -0400 Subject: [PATCH] Added navigation panel --- netbox/templates/extras/inc/report_label.html | 7 ++++ netbox/templates/extras/report_list.html | 35 ++++++++++++------- 2 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 netbox/templates/extras/inc/report_label.html 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 }}

+
@@ -19,25 +19,18 @@ {% for report in module_reports %} - + {% if report.results %} - {% else %} - {% endif %} + {% for method, stats in report.results.data.items %} - + {% endfor %} {% endfor %} @@ -53,5 +47,20 @@
Name
{{ report.name }}{{ report.name }} {{ report.description|default:"" }}{{ report.results.created }} - {% if report.results.failed %} - - {% else %} - - {% endif %} - Never{% include 'extras/inc/report_label.html' %}
+
@@ -46,6 +39,7 @@
{{ method }}
{% endfor %}
+
+ +
{% endblock %}