changeset 486:283154e189d9

sawmill: Moved python blocks in templates to make them more readable.
author Sascha Teichmann <teichmann@intevation.de>
date Thu, 23 Sep 2010 09:59:06 +0000
parents a55a521b7a31
children f208b139190b
files contrib/sawmill/web/templates/details.html contrib/sawmill/web/templates/overview.html
diffstat 2 files changed, 19 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 <!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)
--- 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 @@
 <!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
 %>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)