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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 23 11:59:07 CEST 2010


Author: teichmann
Date: 2010-09-23 11:59:06 +0200 (Thu, 23 Sep 2010)
New Revision: 446

Modified:
   trunk/contrib/sawmill/web/templates/details.html
   trunk/contrib/sawmill/web/templates/overview.html
Log:
sawmill: Moved python blocks in templates to make them more readable.


Modified: trunk/contrib/sawmill/web/templates/details.html
===================================================================
--- trunk/contrib/sawmill/web/templates/details.html	2010-09-23 08:29:27 UTC (rev 445)
+++ trunk/contrib/sawmill/web/templates/details.html	2010-09-23 09:59:06 UTC (rev 446)
@@ -1,5 +1,21 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<%@include file="header.inc" %>
+
+<div class="css_prison">
+<h1><%= escape(description) %></h1>
+<%= header %>
+<table class="statustable">
+<tr>
+  <th class="statustablehead">Status</th>
+  <th class="statustablehead">Package</th>
+  <th class="statustablehead">Revision</th>
+  <th class="statustablehead">Start</th>
+  <th class="statustablehead">Stop</th>
+  <th class="statustablehead">Duration</th>
+  <th class="statustablehead">Notes</th>
+</tr>
 <%
 from cgi import escape
 from xml.sax.saxutils import quoteattr
@@ -65,24 +81,7 @@
     'source_package_created':  'preparing build envrionment',
     'binary_package_created':  'success'
 }
-%>
-<html>
-<%@include file="header.inc" %>
 
-<div class="css_prison">
-<h1><%= escape(description) %></h1>
-<%= header %>
-<table class="statustable">
-<tr>
-  <th class="statustablehead">Status</th>
-  <th class="statustablehead">Package</th>
-  <th class="statustablehead">Revision</th>
-  <th class="statustablehead">Start</th>
-  <th class="statustablehead">Stop</th>
-  <th class="statustablehead">Duration</th>
-  <th class="statustablehead">Notes</th>
-</tr>
-<%
 for track_item in track_items:
     # for all track items
     curr_date = date_from_datetime(track_item.build_start)

Modified: trunk/contrib/sawmill/web/templates/overview.html
===================================================================
--- trunk/contrib/sawmill/web/templates/overview.html	2010-09-23 08:29:27 UTC (rev 445)
+++ trunk/contrib/sawmill/web/templates/overview.html	2010-09-23 09:59:06 UTC (rev 446)
@@ -1,9 +1,5 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
-<%
-from cgi import escape
-from xml.sax.saxutils import quoteattr
-%>
 <html>
 <%@include file="header.inc" %>
 
@@ -12,6 +8,9 @@
 </div>
 
 <%
+from cgi import escape
+from xml.sax.saxutils import quoteattr
+
 for treepkg, description in sorted(descriptions, key=lambda x: x[1]):
     # for all descriptions
 %>



More information about the Treepkg-commits mailing list