diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-03-18 20:52:38 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2014-01-21 02:33:56 +0100 |
commit | ff7ef8d4bbdd821beabe83ca78e62928c1177cbf (patch) | |
tree | 7d81e1f3f2345b0351014280b269cf135b736a02 | |
parent | 795381729f606e5ca96d7d2c1b7567edb1ab3f8b (diff) | |
download | bcfg2-ff7ef8d4bbdd821beabe83ca78e62928c1177cbf.tar.gz bcfg2-ff7ef8d4bbdd821beabe83ca78e62928c1177cbf.tar.bz2 bcfg2-ff7ef8d4bbdd821beabe83ca78e62928c1177cbf.zip |
Reports/templates: mark hosts with extra packages in grid view
Clean hosts with extra packages get a blue background in grid view.
-rw-r--r-- | src/lib/Bcfg2/Reporting/templatetags/bcfg2_tags.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |