From c57c79a36f1e4d2b66ef7f01bc0a82ef7d5996e8 Mon Sep 17 00:00:00 2001 From: Joey Hagedorn Date: Wed, 22 Nov 2006 21:18:05 +0000 Subject: finishing move git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2521 ce84e21b-d406-0410-9b95-82705330c041 --- .../Reports/reports/templates/displays/index.html | 18 +++++ .../displays/summary-block-direct-links.html | 7 ++ .../reports/templates/displays/summary-block.html | 90 ++++++++++++++++++++++ .../reports/templates/displays/summary.html | 29 +++++++ .../reports/templates/displays/sys_view.html | 20 +++++ .../Reports/reports/templates/displays/timing.html | 52 +++++++++++++ 6 files changed, 216 insertions(+) create mode 100644 src/lib/Server/Reports/reports/templates/displays/index.html create mode 100644 src/lib/Server/Reports/reports/templates/displays/summary-block-direct-links.html create mode 100644 src/lib/Server/Reports/reports/templates/displays/summary-block.html create mode 100644 src/lib/Server/Reports/reports/templates/displays/summary.html create mode 100644 src/lib/Server/Reports/reports/templates/displays/sys_view.html create mode 100644 src/lib/Server/Reports/reports/templates/displays/timing.html (limited to 'src/lib/Server/Reports/reports/templates/displays') diff --git a/src/lib/Server/Reports/reports/templates/displays/index.html b/src/lib/Server/Reports/reports/templates/displays/index.html new file mode 100644 index 000000000..5d1d3bf76 --- /dev/null +++ b/src/lib/Server/Reports/reports/templates/displays/index.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}Display Index Listing{% endblock %} +{% block pagebanner %} +
+

BCFG Display Index

+ {% comment %} Report Run @ {% now "F j, Y P"%}{% endcomment %} +
+
+{% endblock %} + +{% block content %} + +{% endblock %} diff --git a/src/lib/Server/Reports/reports/templates/displays/summary-block-direct-links.html b/src/lib/Server/Reports/reports/templates/displays/summary-block-direct-links.html new file mode 100644 index 000000000..a218e12b6 --- /dev/null +++ b/src/lib/Server/Reports/reports/templates/displays/summary-block-direct-links.html @@ -0,0 +1,7 @@ +{% extends "displays/summary-block.html" %} +{% block linkprefix1 %}/clients/{% endblock %} +{% block linkprefix2 %}/clients/{% endblock %} +{% block linkprefix3 %}/clients/{% endblock %} +{% block linkprefix4 %}/clients/{% endblock %} +{% block linkprefix5 %}/clients/{% endblock %} +{% block linkprefix6 %}/clients/{% endblock %} \ No newline at end of file diff --git a/src/lib/Server/Reports/reports/templates/displays/summary-block.html b/src/lib/Server/Reports/reports/templates/displays/summary-block.html new file mode 100644 index 000000000..a42176183 --- /dev/null +++ b/src/lib/Server/Reports/reports/templates/displays/summary-block.html @@ -0,0 +1,90 @@ +{% load django_templating_sigh %} + +
+

Summary:

+

{{client_list|length }} Nodes were included in your report.

+ {% if clean_client_list %} +
+ {{clean_client_list|length}} nodes are clean.
+
    + {% for client in clean_client_list|sortname %} + {% set_interaction "foo" %} +
  • Node: + {{client.name}}{{interaction.timestamp}}
  • + {% endfor %} +
+
+ {% endif %} + {% if bad_client_list %} +
+ {{bad_client_list|length}} nodes are bad.
+
    + {% for client in bad_client_list|sortname %} + {% set_interaction "foo" %} +
  • Node: + {{client.name}}{{interaction.timestamp}}
  • + {% endfor %} +
+
+ {% endif %} + {% if modified_client_list %} +
+ {{modified_client_list|length}} nodes were modified in the previous run.
+
    + {% for client in modified_client_list|sortname %} + {% set_interaction "foo" %} +
  • Node: + {{client.name}}{{interaction.timestamp}}
  • + {% endfor %} +
+
+ {% endif %} + {% if extra_client_list %} +
+ {{extra_client_list|length}} nodes have extra configuration. (includes both good and bad nodes)
+
    + {% for client in extra_client_list|sortname %} + {% set_interaction "foo" %} +
  • Node: + {{client.name}}{{interaction.timestamp}}
  • + {% endfor %} +
+
+ {% endif %} + {% if stale_up_client_list %} +
+ {{stale_up_client_list|length}} nodes did not run within the last 24 hours but were pingable.
+
    + {% for client in stale_up_client_list|sortname %} + {% set_interaction "foo" %} +
  • Node: + {{client.name}}{{interaction.timestamp}}
  • + {% endfor %} +
+
+ {% endif %} + {% if stale_all_client_list %} +
+ {{stale_all_client_list|length}} nodes did not run within the last 24 hours. (includes nodes up and down)
+
    + {% for client in stale_all_client_list|sortname %} + {% set_interaction "foo" %} +
  • Node: + {{client.name}}{{interaction.timestamp}}
  • + {% endfor %} +
+
+ {% endif %} + {% if down_client_list %} +
+ {{down_client_list|length}} nodes were down.
+
    + {% for client in down_client_list|sortname %} + {% set_interaction "foo" %} +
  • Node: + {{client.name}}{{interaction.timestamp}}
  • + {% endfor %} +
+
+ {% endif %} +
\ No newline at end of file diff --git a/src/lib/Server/Reports/reports/templates/displays/summary.html b/src/lib/Server/Reports/reports/templates/displays/summary.html new file mode 100644 index 000000000..cf253c25c --- /dev/null +++ b/src/lib/Server/Reports/reports/templates/displays/summary.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% block extra_header_info %} + + +{% endblock%} +{% block title %}Display Index Listing{% endblock %} +{% block pagebanner %} +
+

BCFG Clients Summary

+ Report Run @ {% now "F j, Y P"%} +
+
+{% endblock %} + +{% block content %} +
+ +Enter date or use calendar popup: +
+@ + +Calendar + + | +
+



+ {% include "displays/summary-block-direct-links.html" %} +{% endblock %} diff --git a/src/lib/Server/Reports/reports/templates/displays/sys_view.html b/src/lib/Server/Reports/reports/templates/displays/sys_view.html new file mode 100644 index 000000000..1298059bf --- /dev/null +++ b/src/lib/Server/Reports/reports/templates/displays/sys_view.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% load django_templating_sigh %} + +{% block title %}System-View Display{% endblock %} +{% block pagebanner %} +
+

Grand System View

+ Report Run @ {% now "F j, Y P"%} +
+
+{% endblock %} +{% block content %} +

This view is deprecated and will be removed soon.


Please use the "Summary" view and drill down instead.
+ + {% include "displays/summary-block.html" %} + {% for client in client_list %} + {% set_interaction "foo" %} + {% include "clients/client-nodebox.html" %} + {% endfor %} +{% endblock %} diff --git a/src/lib/Server/Reports/reports/templates/displays/timing.html b/src/lib/Server/Reports/reports/templates/displays/timing.html new file mode 100644 index 000000000..e9020b8ef --- /dev/null +++ b/src/lib/Server/Reports/reports/templates/displays/timing.html @@ -0,0 +1,52 @@ +{% extends "base.html" %} + +{% block extra_header_info %} + + + +{% endblock%} +{% block title %}Display Index Listing{% endblock %} + +{% block content %} +
+

BCFG Performance Timings

+ Report Run @ {% now "F j, Y P"%} +
+
+
+ +Enter date or use calendar popup: +
+@ + +Calendar + + | +
+



+
+ + + + + + + + + + + {% for dict_unit in stats_list %} + + + + + + + + + + {% endfor %} +
HostnameParseProbeInventoryInstallConfigTotal
{{dict_unit.name}}{{dict_unit.parse}}{{dict_unit.probe}}{{dict_unit.inventory}}{{dict_unit.install}}{{dict_unit.config}}{{dict_unit.total}}
+
+{% endblock %} \ No newline at end of file -- cgit v1.2.3-1-g7c22