Skip to contentSkip to conversation

conga/luci/cluster form-macros

Cluster-devel [email protected] 1 participant 1 message Aug 11, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at sourceware.org 2006-08-11 00:23:28

Modified files:
luci/cluster : form-macros

Log message:
icons for services

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

luci/cluster/form-macros +13 -4
@@ -101,11 +101,20 @@
 							</td>
 
 							<td style="width:30%;text-align:right">
-								<h3>Currently Hosting: </h3>
+								<h3>Services: </h3>
 								<ul>
-									<li tal:repeat="svc cstatus/currentservices">
-										<a href="" tal:attributes="href svc/svcurl"><span tal:content="svc/name"/></a>
-									</li>
+                  <span tal:repeat="svc cstatus/currentservices">
+                    <span tal:condition="python:svc['running'] == 'true'">
+									   <li style="list-style-image:url(small_svc.png);">
+										  <a href="" tal:attributes="href svc/svcurl"><font color="green"><span tal:content="svc/name"/></font></a>
+									   </li>
+                    </span>
+                    <span tal:condition="python:svc['running'] != 'true'">
+									   <li style="list-style-image:url(small_svc.png);">
+										  <a href="" tal:attributes="href svc/svcurl"><font color="red"><span tal:content="svc/name"/></font></a>
+									   </li>
+                    </span>
+                 </span>
 								</ul>
 							</td>
 						</tr>