From e98693ada5d512e6c4a9dac40a30f5db554ead3d Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Fri, 4 May 2012 19:14:20 -0500 Subject: reports: Add fine-grained filter for 'bad' clients This filter introduces percentages which should help administrators to quickly visually see where they should focus their time. The worse the percentage of bad/total entries, the darker the color of the client. Signed-off-by: Sol Jerome --- .../Reports/reports/templates/clients/index.html | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/lib/Bcfg2/Server/Reports/reports/templates/clients/index.html') diff --git a/src/lib/Bcfg2/Server/Reports/reports/templates/clients/index.html b/src/lib/Bcfg2/Server/Reports/reports/templates/clients/index.html index e0c0d2d7a..134e237d6 100644 --- a/src/lib/Bcfg2/Server/Reports/reports/templates/clients/index.html +++ b/src/lib/Bcfg2/Server/Reports/reports/templates/clients/index.html @@ -1,4 +1,5 @@ {% extends "base-timeview.html" %} +{% load bcfg2_tags %} {% block extra_header_info %} {% endblock%} @@ -8,27 +9,26 @@ {% block pagebanner %}Clients - Grid View{% endblock %} {% block content %} - {% if inter_list %} - +
{% for inter in inter_list %} - {% if forloop.first %}{% endif %} - - {% if forloop.last %} - - {% else %} - {% if forloop.counter|divisibleby:"4" %}{% endif %} - {% endif %} - {% endfor %} -
- {{ inter.client.name }} -
-{% else %} -

No client records are available.

+ {% if forloop.first %}{% endif %} + + {{ inter.client.name }} + + {% if forloop.last %} + + {% else %} + {% if forloop.counter|divisibleby:"4" %}{% endif %} + {% endif %} + {% endfor %} + +{% else %}

No client records are available.

{% endif %} {% endblock %} -- cgit v1.2.3-1-g7c22