Author: eallen
Date: 2008-11-13 10:17:12 -0500 (Thu, 13 Nov 2008)
New Revision: 2797
Modified:
mgmt/trunk/cumin/python/cumin/pool.strings
Log:
Added javascript to handle pool stats update.
Changed from job visualization to pool slot visualization
Modified: mgmt/trunk/cumin/python/cumin/pool.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/pool.strings 2008-11-13 15:15:49 UTC (rev 2796)
+++ mgmt/trunk/cumin/python/cumin/pool.strings 2008-11-13 15:17:12 UTC (rev 2797)
@@ -16,6 +16,23 @@
from
(select 1 from collector group by pool) as l
+[PoolView.javascript]
+function updatePool(data) {
+ var model = data.objectify();
+ var pools = model.pool;
+ var pool;
+
+ for (var key in pools) {
+ pool = pools[key];
+ break;
+ }
+
+ cumin.runModelListeners(model);
+ cumin.runObjectListeners(pool);
+
+ //throw new Error();
+}
+
[PoolStatus.html]
<div id="{id}" class="CuminStatus {color}">
<h2>{title}</h2>
@@ -23,6 +40,11 @@
<div>{status}</div>
</div>
+[PoolStats.css]
+div.vistats {
+ margin-bottom: 2em;
+}
+
[PoolStats.html]
<div style="width: 50%; float: left;">
<h2>General</h2>
@@ -31,8 +53,10 @@
</div>
</div>
<div style="float: left; margin-left: 4em;">
- <h2>Job Activity</h2>
- {job_grid}
+ <div class="vistats">
+ <h2>Slot Utilization</h2>
+ {slot_grid}
+ </div>
</div>
<div style="clear:left;"><!-- --></div>
Show replies by date