Unbreak otherr status box things.

This commit is contained in:
Simon MacMullen 2012-10-03 11:10:06 +01:00
parent 1c2cc0f3d3
commit ab0f5d34f0
5 changed files with 15 additions and 15 deletions

View File

@ -92,16 +92,16 @@ table.mini td { border: none; padding: 0 2px 2px 2px; }
tr.alt1>td { background: #eee; }
tr.alt2>td { background: #fff; }
div.status-bar { text-align: center; }
div.status-bar-main { border-radius: 5px; -moz-border-radius: 5px; padding: 5px; }
div.status-bar, div.status-red, div.status-yellow, div.status-green { text-align: center; }
div.status-bar-main, div.status-red, div.status-yellow, div.status-green { border-radius: 5px; -moz-border-radius: 5px; padding: 5px; }
div.status-bar sub { white-space: nowrap; }
div.status-bar .red { background: #ff7a7a; color: white; }
div.status-bar .yellow { background: #ffff7b; }
div.status-bar .green { background: #7bff7b; }
div.status-bar .red, div.status-red { background: #ff7a7a; color: white; }
div.status-bar .yellow, div.status-yellow { background: #ffff7b; }
div.status-bar .green, div.status-green { background: #7bff7b; }
div.status-bar .red-dark { background: #e24545; color: white; }
/* yellow-dark and green-dark can never happen */
div.status-bar .red *, div.status-bar .red-dark * { color: white; }
div.status-bar .red *, div.status-bar .red-dark *, div.status-red * { color: white; }
td.l { text-align: left !important; }
td.c { text-align: center !important; }

View File

@ -405,11 +405,11 @@ function fmt_connection_state(conn) {
}
if (explanation) {
return '<div class="' + colour + '"><acronym title="' + explanation +
'">' + text + '</acronym></div>';
return '<div class="status-' + colour + '"><acronym title="' +
explanation + '">' + text + '</acronym></div>';
}
else {
return '<div class="' + colour + '">' + text + '</div>';
return '<div class="status-' + colour + '">' + text + '</div>';
}
}

View File

@ -66,7 +66,7 @@
<table class="facts">
<tr>
<th>State</th>
<td class="status"><%= fmt_connection_state(connection) %></td>
<td><%= fmt_connection_state(connection) %></td>
</tr>
<tr>
<th>Timeout</th>

View File

@ -51,7 +51,7 @@
<td><%= fmt_string(connection.vhost) %></td>
<% } %>
<td><%= fmt_string(connection.user) %></td>
<td class="status"><%= fmt_connection_state(connection) %></td>
<td><%= fmt_connection_state(connection) %></td>
</tr>
<% } %>
</tbody>

View File

@ -89,14 +89,14 @@
<%= link_node(node.name) %>
</td>
<% if (!node.running) { %>
<td class="status" colspan="6">
<div class="red">
<td colspan="6">
<div class="status-red">
Node not running
</div>
</td>
<% } else if (node.os_pid == undefined) { %>
<td class="status" colspan="6">
<div class="yellow">
<td colspan="6">
<div class="status-yellow">
<acronym title="The rabbitmq_management_agent plugin should be enabled on this node. If it is not, various statistics will be inaccurate.">
Node statistics not available</acronym>
</div>