summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Reports/reports/templates/widgets
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-05-04 19:14:20 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-05-06 12:59:29 -0500
commite98693ada5d512e6c4a9dac40a30f5db554ead3d (patch)
tree413b69c54192d019c068f379a6289e66b0a9b643 /src/lib/Bcfg2/Server/Reports/reports/templates/widgets
parente7de8e63d9013e2f7d555255b08d05d7d2560a1f (diff)
downloadbcfg2-e98693ada5d512e6c4a9dac40a30f5db554ead3d.tar.gz
bcfg2-e98693ada5d512e6c4a9dac40a30f5db554ead3d.tar.bz2
bcfg2-e98693ada5d512e6c4a9dac40a30f5db554ead3d.zip
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 <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server/Reports/reports/templates/widgets')
-rw-r--r--src/lib/Bcfg2/Server/Reports/reports/templates/widgets/interaction_list.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Reports/reports/templates/widgets/interaction_list.inc b/src/lib/Bcfg2/Server/Reports/reports/templates/widgets/interaction_list.inc
index 8f2dec1dc..6fe7e6547 100644
--- a/src/lib/Bcfg2/Server/Reports/reports/templates/widgets/interaction_list.inc
+++ b/src/lib/Bcfg2/Server/Reports/reports/templates/widgets/interaction_list.inc
@@ -20,7 +20,7 @@
<td class='right_column_wide'><a href='{% add_url_filter hostname=entry.client.name %}'>{{ entry.client.name }}</a></td>
{% endif %}
<td class='right_column' style='width:75px'><a href='{% add_url_filter state=entry.state %}'
- {% ifequal entry.state 'dirty' %}class='dirty-lineitem'{% endifequal %}>{{ entry.state }}</a></td>
+ class='{{entry|determine_client_state}}'>{{ entry.state }}</a></td>
<td class='right_column_narrow'>{{ entry.goodcount }}</td>
<td class='right_column_narrow'>{{ entry.bad_entry_count }}</td>
<td class='right_column_narrow'>{{ entry.modified_entry_count }}</td>