Author: dcbw
Update of /cvs/fedora/extras-buildsys/www In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21650/www
Modified Files: builders.psp Log Message: 2005-09-01 Dan Williams dcbw@redhat.com
* www/builders.psp - Better unavailable builders display
Index: builders.psp =================================================================== RCS file: /cvs/fedora/extras-buildsys/www/builders.psp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- builders.psp 31 Aug 2005 19:31:00 -0000 1.9 +++ builders.psp 1 Sep 2005 18:45:01 -0000 1.10 @@ -43,16 +43,18 @@ unavail_color = '' if builder['alive'] == False: unavail_color = 'color="#ff4444"' + slots_text = "unavailable" + else: + num_building = builder['num_slots'] - builder['free_slots'] + slots_text = "%s/%s" % (num_building, builder['num_slots']) # endif - - num_building = builder['num_slots'] - builder['free_slots'] %>
<table class="builderlist" cellspacing="0" cellpadding="0"> <tr> <td class="builderaddr-side"></td> <td class="builderaddr" align="left"> - <font class="builderaddr" <%=unavail_color%>><%=builder['address']%> (<%=num_building%>/<%=builder['num_slots']%>)<br> + <font class="builderaddr" <%=unavail_color%>><%=builder['address']%> (<%=slots_text%>)<br> <font class="builderarches"><%=arch_list%></font> </td> <td class="builderaddr-side"></td>
scm-commits@lists.fedoraproject.org