Skip to content

Commit

Permalink
colored bucket and node statuses
Browse files Browse the repository at this point in the history
Change-Id: Ib69f3ca93e0a40c2ec83d096b1406c3732cb21c3
  • Loading branch information
BigBlueHat committed Jun 28, 2012
1 parent 26fd65f commit 0ecba30
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions report-htm.tmpl
Expand Up @@ -141,16 +141,11 @@
<th>Health Status</th>
</tr>
</thead>
#for $bucket in sorted($bucket_list.keys())
#for $bucket in sorted($bucket_list.keys())
#set $bucket_status_class = 'status-' + $bucket_list[$bucket].lower()
<tr>
<td>$bucket</td>
#if $bucket_list[$bucket] == "Error"
<td class="status-error">Immediate action needed</td>
#elif $bucket_list[$bucket] == "Warning"
<td class="status-warning">Attention needed</td>
#else
<td class="status-ok">OK</td>
#end if
<td class="$bucket_status_class">$bucket_list[$bucket]</td>
</tr>
#end for
</table>
Expand All @@ -163,11 +158,12 @@
<th>Cluster Status</th>
</tr>
</thead>
#for $node in sorted($node_list["nodeList"]["value"])
#for $node in sorted($node_list["nodeList"]["value"])
#set $node_status_class = 'status-' + $node["status"].lower()
<tr>
<td>$node["host"]</td>
<td>$node["version"]</td>
<td>$node["status"]</td>
<td class="$node_status_class">$node["status"]</td>
</tr>
#end for
</table>
Expand Down

0 comments on commit 0ecba30

Please sign in to comment.