Skip to contentSkip to conversation

conga/luci/cluster form-macros

Cluster-devel [email protected] 1 participant 1 message Sep 25, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-09-25 15:59:21

Modified files:
luci/cluster : form-macros

Log message:
fix logic inversion bug on the cluster list page

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.67&r2=1.68

luci/cluster/form-macros +6 -4
@@ -27,12 +27,14 @@
 <div metal:define-macro="clusters-form">
 <div id="cluster_list">
 <div class="cluster" tal:repeat="clu clusystems">
-	<span tal:define="global ragent python: here.getRicciAgent(clu)"/>
-  <span tal:condition="python: ragent == ''">
-    <h4><font color="red">An error occurred when trying to contact any of the nodes in the <span tal:content="clu"/>.</font></h4>
+	<tal:block tal:define="global ragent python: here.getRicciAgent(clu)" />
+
+ <span tal:condition="python: ragent == ''">
+    <strong class="errmsgs">An error occurred when trying to contact any of the nodes in the <span tal:replace="python: clu[0]"/> cluster.</strong>
   <hr/>
   </span>
-  <span tal:condition="python: ragent == ''">
+
+  <span tal:condition="python: ragent != ''">
 	<tal:block
 			tal:define="global stat python: here.getClusterStatus(ragent);
 			global cstatus python: here.getClustersInfo(stat,request);