diff --git a/puppetboard/templates/index.html b/puppetboard/templates/index.html index 599bde8..98e324c 100644 --- a/puppetboard/templates/index.html +++ b/puppetboard/templates/index.html @@ -1,128 +1,128 @@ {% extends 'layout.html' %} {% block content %}

{{metrics['num_nodes']}}

Population

{{metrics['num_resources']}}

Resources managed

{{metrics['avg_resources_node']}}

Avg. resources/node
{% if nodes %}

Nodes status detail ({{nodes|length}})

{% for node in nodes %} {% if node.status != 'unchanged' %} {% endif %} {% endfor %}
Status Hostname Report
{{node.status}} {% if node.status=='unreported'%} {{ node.unreported_time }} {% else %} {% if node.events['failures'] %}{{node.events['failures']}}{% else %}0{% endif%} {% if node.events['successes'] %}{{node.events['successes']}}{% else %}0{% endif%} - {% if node.events['skips'] %}{{node.events['skips']}}{% else %}0{% endif%} + {% if node.events['skips'] %}{{node.events['skips']}}{% else %}0{% endif%} {% endif %} {{ node.name }} {% if node.report_timestamp %} {{ node.report_timestamp }} {% else %} {% endif %} {% if node.report_timestamp %} {% endif %}
{% else %}

Nodes status detail

Nothing seems to be changing.
{% endif %}
{% endblock content %} diff --git a/puppetboard/templates/nodes.html b/puppetboard/templates/nodes.html index c657706..68975d6 100644 --- a/puppetboard/templates/nodes.html +++ b/puppetboard/templates/nodes.html @@ -1,60 +1,60 @@ {% extends 'layout.html' %} {% block content %}
{% for node in nodes %} {% endfor %}
Status Hostname Catalog Report  
{{node.status}} {% if node.status=='unreported'%} {{ node.unreported_time }} {% else %} {% if node.events['failures'] %}{{node.events['failures']}}{% else %}0{% endif%} {% if node.events['successes'] %}{{node.events['successes']}}{% else %}0{% endif%} - {% if node.events['skips'] %}{{node.events['skips']}}{% else %}0{% endif%} + {% if node.events['skips'] %}{{node.events['skips']}}{% else %}0{% endif%} {% endif %} {{node.name}} {{node.catalog_timestamp}} {% if node.report_timestamp %} {{ node.report_timestamp }} {% else %} {% endif %} {% if node.report_timestamp %} {% endif %}
{% endblock content %}