summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Reports/reports/templates/clients/detailed-list.html
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/clients/detailed-list.html
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/clients/detailed-list.html')
-rw-r--r--src/lib/Bcfg2/Server/Reports/reports/templates/clients/detailed-list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Reports/reports/templates/clients/detailed-list.html b/src/lib/Bcfg2/Server/Reports/reports/templates/clients/detailed-list.html
index 0c1fae8d5..84ac71d92 100644
--- a/src/lib/Bcfg2/Server/Reports/reports/templates/clients/detailed-list.html
+++ b/src/lib/Bcfg2/Server/Reports/reports/templates/clients/detailed-list.html
@@ -23,7 +23,7 @@
<tr class='{% cycle listview,listview_alt %}'>
<td class='left_column'><a href='{% url Bcfg2.Server.Reports.reports.views.client_detail hostname=entry.client.name, pk=entry.id %}'>{{ entry.client.name }}</a></td>
<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>