Mercurial > treepkg
changeset 484:2e947f508553
sawmill: Improved HTML 4.01 transitional compat a bit.
Reduce text output of inner loop to reduce overall
output size of detail page.
author | Sascha Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 18 Sep 2010 10:15:45 +0000 |
parents | 28aa6ac933fb |
children | a55a521b7a31 |
files | contrib/sawmill/web/templates/details.html contrib/sawmill/web/templates/footer.inc contrib/sawmill/web/templates/header.inc |
diffstat | 3 files changed, 23 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/sawmill/web/templates/details.html Sat Sep 18 09:46:22 2010 +0000 +++ b/contrib/sawmill/web/templates/details.html Sat Sep 18 10:15:45 2010 +0000 @@ -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
--- a/contrib/sawmill/web/templates/footer.inc Sat Sep 18 09:46:22 2010 +0000 +++ b/contrib/sawmill/web/templates/footer.inc Sat Sep 18 10:15:45 2010 +0000 @@ -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>
--- a/contrib/sawmill/web/templates/header.inc Sat Sep 18 09:46:22 2010 +0000 +++ b/contrib/sawmill/web/templates/header.inc Sat Sep 18 10:15:45 2010 +0000 @@ -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 -->