# HG changeset patch # User Sascha Teichmann # Date 1285235946 0 # Node ID 283154e189d9b828258830225f837b6c837dc71d # Parent a55a521b7a31b36efb909f606fb26be4fa42c68c sawmill: Moved python blocks in templates to make them more readable. diff -r a55a521b7a31 -r 283154e189d9 contrib/sawmill/web/templates/details.html --- a/contrib/sawmill/web/templates/details.html Thu Sep 23 08:29:27 2010 +0000 +++ b/contrib/sawmill/web/templates/details.html Thu Sep 23 09:59:06 2010 +0000 @@ -1,5 +1,21 @@ + +<%@include file="header.inc" %> + +
+

<%= escape(description) %>

+<%= header %> + + + + + + + + + + <% from cgi import escape from xml.sax.saxutils import quoteattr @@ -65,24 +81,7 @@ 'source_package_created': 'preparing build envrionment', 'binary_package_created': 'success' } -%> - -<%@include file="header.inc" %> -
-

<%= escape(description) %>

-<%= header %> -
StatusPackageRevisionStartStopDurationNotes
- - - - - - - - - -<% for track_item in track_items: # for all track items curr_date = date_from_datetime(track_item.build_start) diff -r a55a521b7a31 -r 283154e189d9 contrib/sawmill/web/templates/overview.html --- a/contrib/sawmill/web/templates/overview.html Thu Sep 23 08:29:27 2010 +0000 +++ b/contrib/sawmill/web/templates/overview.html Thu Sep 23 09:59:06 2010 +0000 @@ -1,9 +1,5 @@ -<% -from cgi import escape -from xml.sax.saxutils import quoteattr -%> <%@include file="header.inc" %> @@ -12,6 +8,9 @@ <% +from cgi import escape +from xml.sax.saxutils import quoteattr + for treepkg, description in sorted(descriptions, key=lambda x: x[1]): # for all descriptions %>
StatusPackageRevisionStartStopDurationNotes