Unbreak otherr status box things.
This commit is contained in:
parent
1c2cc0f3d3
commit
ab0f5d34f0
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue