[Treepkg-commits] r444 - trunk/contrib/sawmill/web/templates

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Sep 18 12:15:45 CEST 2010


Author: teichmann
Date: 2010-09-18 12:15:45 +0200 (Sat, 18 Sep 2010)
New Revision: 444

Modified:
   trunk/contrib/sawmill/web/templates/details.html
   trunk/contrib/sawmill/web/templates/footer.inc
   trunk/contrib/sawmill/web/templates/header.inc
Log:
sawmill: Improved HTML 4.01 transitional compat a bit.
Reduce text output of inner loop to reduce overall
output size of detail page.


Modified: trunk/contrib/sawmill/web/templates/details.html
===================================================================
--- trunk/contrib/sawmill/web/templates/details.html	2010-09-18 09:46:22 UTC (rev 443)
+++ trunk/contrib/sawmill/web/templates/details.html	2010-09-18 10:15:45 UTC (rev 444)
@@ -96,8 +96,7 @@
 <tr class="<%= STATUS2CLASS.get(track_item.build_status, 'error') %>">
 <td><%= STATUS2MSG.get(track_item.build_status, 'error') %></td>
 <td style="font-weight:bold;"><%= nn(track_item.track) %></td>
-<td align="right">
-<%
+<td align="right"><%
     tags = track_item.build_tags
     if tags:
         # a tag
@@ -106,12 +105,9 @@
 <%
     else:
         # not a tag
-%>
-<%= nn(track_item.revision) %>
-<%
+%><%= nn(track_item.revision) %><%
     # end if tags
-%>
-</td>
+%></td>
 <td align="right"><%= pretty_time(track_item.build_start) %></td>
 <td align="right"><%= pretty_time(track_item.build_stop) %></td>
 <td align="right"><%= pretty_timedelta(track_item.stop, track_item.build_start) %></td>
@@ -123,8 +119,7 @@
 [<a href=<%= quoteattr("%s/%s" % (base_dir, log_path)) %>><%= nn(log_desc) %></a>]
 <%
     # for all logs
-%>
-</td>
+%></td>
 </tr>
 <%
 # for all track itemes

Modified: trunk/contrib/sawmill/web/templates/footer.inc
===================================================================
--- trunk/contrib/sawmill/web/templates/footer.inc	2010-09-18 09:46:22 UTC (rev 443)
+++ trunk/contrib/sawmill/web/templates/footer.inc	2010-09-18 10:15:45 UTC (rev 444)
@@ -1,35 +1,35 @@
             <!-- end main body row -->
             <td width="10" bgcolor="#ffffff">
-              <img src="img/clear.png" width="2" height="1" alt="" />
+              <img src="img/clear.png" width="2" height="1" alt="">
             </td>
           </tr>
           <tr>
             <td align="left" bgcolor="#E0E0E0" width="9">
-              <img src="img/bottomleft-inner.png" height="11" width="11" alt="" />
+              <img src="img/bottomleft-inner.png" height="11" width="11" alt="">
             </td>
             <td bgcolor="#ffffff">
-              <img src="img/clear.png" width="1" height="1" alt="" />
+              <img src="img/clear.png" width="1" height="1" alt="">
             </td>
             <td align="right" bgcolor="#E0E0E0" width="9">
-              <img src="img/bottomright-inner.png" height="11" width="11" alt="" />
+              <img src="img/bottomright-inner.png" height="11" width="11" alt="">
             </td>
           </tr>
         </table>
         <!-- end inner body row -->
       </td>
       <td width="10" bgcolor="#E0E0E0">
-        <img src="img/clear.png" width="2" height="1" alt="" />
+        <img src="img/clear.png" width="2" height="1" alt="">
       </td>
     </tr>
     <tr>
       <td align="left" bgcolor="#E0E0E0" width="9">
-        <img src="img/bottomleft.png" height="9" width="9" alt="" />
+        <img src="img/bottomleft.png" height="9" width="9" alt="">
       </td>
       <td bgcolor="#E0E0E0" colspan="3">
-        <img src="img/clear.png" width="1" height="1" alt="" />
+        <img src="img/clear.png" width="1" height="1" alt="">
       </td>
       <td align="right" bgcolor="#E0E0E0" width="9">
-         <img src="img/bottomright.png" height="9" width="9" alt="" />
+         <img src="img/bottomright.png" height="9" width="9" alt="">
       </td>
     </tr>
   </table>

Modified: trunk/contrib/sawmill/web/templates/header.inc
===================================================================
--- trunk/contrib/sawmill/web/templates/header.inc	2010-09-18 09:46:22 UTC (rev 443)
+++ trunk/contrib/sawmill/web/templates/header.inc	2010-09-18 10:15:45 UTC (rev 444)
@@ -13,49 +13,49 @@
     <tr>
       <td>
         <a href=<%= quoteattr(back_link) %>><img src="img/logo.jpg"
-           border="0" alt="" width="533" height="94" /></a>
+           border="0" alt="" width="533" height="94"></a>
       </td>
    </tr>
   </table>
   <table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td align="left" bgcolor="#E0E0E0" width="9">
-        <img src="img/topleft.png" height="9" width="9" alt="" />
+        <img src="img/topleft.png" height="9" width="9" alt="">
       </td>
       <td bgcolor="#E0E0E0" width="30">
-        <img src="img/clear.png" width="30" height="1" alt="" />
+        <img src="img/clear.png" width="30" height="1" alt="">
       </td>
       <td bgcolor="#E0E0E0">
-        <img src="img/clear.png" width="1" height="1" alt="" />
+        <img src="img/clear.png" width="1" height="1" alt="">
       </td>
       <td bgcolor="#E0E0E0" width="30">
-        <img src="img/clear.png" width="30" height="1" alt="" />
+        <img src="img/clear.png" width="30" height="1" alt="">
       </td>
       <td align="right" bgcolor="#E0E0E0" width="9">
-        <img src="img/topright.png" height="9" width="9" alt="" />
+        <img src="img/topright.png" height="9" width="9" alt="">
       </td>
     </tr>
     <tr>
       <!-- Outer body row -->
       <td bgcolor="#E0E0E0">
-        <img src="img/clear.png" width="10" height="1" alt="" />
+        <img src="img/clear.png" width="10" height="1" alt="">
       </td>
       <td valign="top" width="99%" bgcolor="#E0E0E0" colspan="3">
         <!-- Inner Tabs / Shell -->
         <table border="0" width="100%" cellspacing="0" cellpadding="0">
           <tr>
             <td align="left" bgcolor="#ffffff" width="9">
-              <img src="img/topleft-inner.png" height="9" width="9" alt="" />
+              <img src="img/topleft-inner.png" height="9" width="9" alt="">
             </td>
             <td bgcolor="#ffffff">
-              <img src="img/clear.png" width="1" height="1" alt="" />
+              <img src="img/clear.png" width="1" height="1" alt="">
             </td>
             <td align="right" bgcolor="#ffffff" width="9">
-              <img src="img/topright-inner.png" height="9" width="9" alt="" />
+              <img src="img/topright-inner.png" height="9" width="9" alt="">
             </td>
           </tr>
           <tr>
             <td bgcolor="#ffffff">
-              <img src="img/clear.png" width="10" height="1" alt="" />
+              <img src="img/clear.png" width="10" height="1" alt="">
             </td>
             <!-- begin main body row -->



More information about the Treepkg-commits mailing list