From 0ecba30c49c9ccca5c3b5cd0b2d097f798f94b86 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Wed, 27 Jun 2012 15:58:57 -0400 Subject: [PATCH] colored bucket and node statuses Change-Id: Ib69f3ca93e0a40c2ec83d096b1406c3732cb21c3 --- report-htm.tmpl | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/report-htm.tmpl b/report-htm.tmpl index 6e40677..afd9b2d 100755 --- a/report-htm.tmpl +++ b/report-htm.tmpl @@ -141,16 +141,11 @@ Health Status -#for $bucket in sorted($bucket_list.keys()) + #for $bucket in sorted($bucket_list.keys()) + #set $bucket_status_class = 'status-' + $bucket_list[$bucket].lower() $bucket - #if $bucket_list[$bucket] == "Error" - Immediate action needed - #elif $bucket_list[$bucket] == "Warning" - Attention needed - #else - OK - #end if + $bucket_list[$bucket] #end for @@ -163,11 +158,12 @@ Cluster Status -#for $node in sorted($node_list["nodeList"]["value"]) + #for $node in sorted($node_list["nodeList"]["value"]) + #set $node_status_class = 'status-' + $node["status"].lower() $node["host"] $node["version"] - $node["status"] + $node["status"] #end for