Author: justi9
Date: 2008-04-17 14:51:52 -0400 (Thu, 17 Apr 2008)
New Revision: 1936
Modified:
mgmt/cumin/python/cumin/client.strings
mgmt/cumin/python/cumin/exchange.strings
mgmt/cumin/python/cumin/model.py
mgmt/cumin/python/cumin/page.strings
mgmt/cumin/python/cumin/queue.strings
Log:
An improved two-column table layout
Modified: mgmt/cumin/python/cumin/client.strings
===================================================================
--- mgmt/cumin/python/cumin/client.strings 2008-04-17 18:37:02 UTC (rev 1935)
+++ mgmt/cumin/python/cumin/client.strings 2008-04-17 18:51:52 UTC (rev 1936)
@@ -110,13 +110,13 @@
}
[ClientStats.html]
-<table class="layout">
+<table class="twocol">
<tr>
- <td class="twocol">
+ <td>
<h2>General</h2>
{general}
</td>
- <td class="twocol">
+ <td>
{sendrecv}
</td>
</tr>
Modified: mgmt/cumin/python/cumin/exchange.strings
===================================================================
--- mgmt/cumin/python/cumin/exchange.strings 2008-04-17 18:37:02 UTC (rev 1935)
+++ mgmt/cumin/python/cumin/exchange.strings 2008-04-17 18:51:52 UTC (rev 1936)
@@ -194,16 +194,16 @@
</tr>
[ExchangeStats.html]
-<table class="layout">
+<table class="twocol">
<tr>
- <td class="twocol">
+ <td>
<h2>Messages</h2>
{messages}
<h2>General</h2>
{general}
</td>
- <td class="twocol">
+ <td>
{recvroutedrop}
{producers}
</td>
Modified: mgmt/cumin/python/cumin/model.py
===================================================================
--- mgmt/cumin/python/cumin/model.py 2008-04-17 18:37:02 UTC (rev 1935)
+++ mgmt/cumin/python/cumin/model.py 2008-04-17 18:51:52 UTC (rev 1936)
@@ -248,7 +248,7 @@
text = self.rate_text(object)
if text:
- html = "%s<small>/sec</small>" % text
+ html = text
else:
html = fmt_none_brief()
Modified: mgmt/cumin/python/cumin/page.strings
===================================================================
--- mgmt/cumin/python/cumin/page.strings 2008-04-17 18:37:02 UTC (rev 1935)
+++ mgmt/cumin/python/cumin/page.strings 2008-04-17 18:51:52 UTC (rev 1936)
@@ -433,6 +433,22 @@
width: 100%;
}
+table.twocol {
+ width: 100%;
+}
+
+table.twocol > tbody > tr > td {
+ width: 50%;
+}
+
+table.twocol > tbody > tr > td:first-child {
+ padding: 0 1.5em 0 0;
+}
+
+table.twocol > tbody > tr > td:last-child {
+ padding: 0 0 0 1.5em;
+}
+
.ralign, table.mobjects .ralign, div.mstatus table .ralign {
text-align: right;
}
Modified: mgmt/cumin/python/cumin/queue.strings
===================================================================
--- mgmt/cumin/python/cumin/queue.strings 2008-04-17 18:37:02 UTC (rev 1935)
+++ mgmt/cumin/python/cumin/queue.strings 2008-04-17 18:51:52 UTC (rev 1936)
@@ -180,16 +180,16 @@
<div class="radiotabs mode">{mode}</div>
[QueueStatsGeneral.html]
-<table class="layout">
+<table class="twocol">
<tr>
- <td class="twocol">
+ <td>
<h2>Messages</h2>
{messages}
<h2>General</h2>
{general}
</td>
- <td class="twocol">
+ <td>
{enqdeq}
{depth}
{consumers}
@@ -198,29 +198,29 @@
</table>
[QueueStatsDurability.html]
-<table class="layout">
+<table class="twocol">
<tr>
- <td class="twocol">
+ <td>
<h2>Durable Messages</h2>
{messages}
</td>
- <td class="twocol">
+ <td>
{enqdeq}
</td>
</tr>
</table>
[QueueStatsTransactions.html]
-<table class="layout">
+<table class="twocol">
<tr>
- <td class="twocol">
+ <td>
<h2>Transactions</h2>
{transactions}
<h2>Transactional Messages</h2>
{messages}
</td>
- <td class="twocol">
+ <td>
{enqtxn}
{deqtxn}
{enqdeq}
Show replies by date