From a8006090c834d70d3e0bc5adecf5143bb738a106 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 18 Mar 2013 20:52:38 +0100 Subject: Reports/templates: mark hosts with extra packages in grid view Clean hosts with extra packages get a blue background in grid view. --- src/lib/Bcfg2/Reporting/templatetags/bcfg2_tags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/Bcfg2/Reporting/templatetags/bcfg2_tags.py b/src/lib/Bcfg2/Reporting/templatetags/bcfg2_tags.py index 489682f30..ee8738a0c 100644 --- a/src/lib/Bcfg2/Reporting/templatetags/bcfg2_tags.py +++ b/src/lib/Bcfg2/Reporting/templatetags/bcfg2_tags.py @@ -319,6 +319,8 @@ def determine_client_state(entry): _how_ dirty and adjust the color accordingly. """ if entry.state == 'clean': + if entry.extra_count > 0: + return "extra-lineitem" return "clean-lineitem" bad_percentage = 100 * (float(entry.bad_count) / entry.total_count) -- cgit v1.2.3-1-g7c22