[rhmessaging-commits] rhmessaging commits: r1028 - mgmt/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Oct 12 15:56:47 EDT 2007


Author: justi9
Date: 2007-10-12 15:56:46 -0400 (Fri, 12 Oct 2007)
New Revision: 1028

Modified:
   mgmt/cumin/python/cumin/server.py
   mgmt/cumin/python/cumin/server.strings
Log:
Improves the styling of group types a bit and adds a remove-group
link.



Modified: mgmt/cumin/python/cumin/server.py
===================================================================
--- mgmt/cumin/python/cumin/server.py	2007-10-12 19:42:02 UTC (rev 1027)
+++ mgmt/cumin/python/cumin/server.py	2007-10-12 19:56:46 UTC (rev 1028)
@@ -155,6 +155,13 @@
         self.param.set(branch, None)
         return link(branch.marshal(), "All Servers", class_)
 
+    def render_remove_group_link(self, session, model):
+        group = self.param.get(session)
+
+        if group:
+            branch = session.branch()
+            return "<li>%s</li>" % link(branch.marshal(), "Remove This Group")
+
     class BrowserGroups(Widget):
         def __init__(self, app, name):
             super(ServerBrowser.BrowserGroups, self).__init__(app, name)

Modified: mgmt/cumin/python/cumin/server.strings
===================================================================
--- mgmt/cumin/python/cumin/server.strings	2007-10-12 19:42:02 UTC (rev 1027)
+++ mgmt/cumin/python/cumin/server.strings	2007-10-12 19:56:46 UTC (rev 1028)
@@ -80,8 +80,12 @@
 }
 
 .ServerBrowser.groups h2 {
-  color: #afbf27;
+  color: #564979;
   font-weight: bold;
+  font-size: 0.9em;
+  border-bottom: 1px dotted #ddd;
+  width: 80%;
+  margin: 0 0 0.5em 0;
 }
 
 .ServerBrowser.servers {
@@ -97,6 +101,7 @@
   <ul class="actions">
     <li><a href="">Add Server</a></li>
     <li><a href="">Shutdown Servers</a></li>
+    {remove_group_link}
   </ul>
 
   {servers}




More information about the rhmessaging-commits mailing list