comparison contrib/sawmill/web/templates/details.html @ 488:a0d19e20fb89

sawmill: moved imports before there usage
author Sascha Teichmann <teichmann@intevation.de>
date Sun, 26 Sep 2010 07:49:57 +0000
parents 283154e189d9
children e7114ac643c3
comparison
equal deleted inserted replaced
487:f208b139190b 488:a0d19e20fb89
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd"> 2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html> 3 <html>
4 <%@include file="header.inc" %> 4 <%@include file="header.inc" %>
5 5 <%
6 from cgi import escape
7 from xml.sax.saxutils import quoteattr
8 from datetime import date, datetime
9 %>
6 <div class="css_prison"> 10 <div class="css_prison">
7 <h1><%= escape(description) %></h1> 11 <h1><%= escape(description) %></h1>
8 <%= header %> 12 <%= header %>
9 <table class="statustable"> 13 <table class="statustable">
10 <tr> 14 <tr>
15 <th class="statustablehead">Stop</th> 19 <th class="statustablehead">Stop</th>
16 <th class="statustablehead">Duration</th> 20 <th class="statustablehead">Duration</th>
17 <th class="statustablehead">Notes</th> 21 <th class="statustablehead">Notes</th>
18 </tr> 22 </tr>
19 <% 23 <%
20 from cgi import escape
21 from xml.sax.saxutils import quoteattr
22
23 from datetime import date, datetime
24
25 def nn(s, d=""): 24 def nn(s, d=""):
26 if not s: return d 25 if not s: return d
27 return escape(s) 26 return escape(s)
28 27
29 def pretty_time(t, format="%H:%M:%S"): 28 def pretty_time(t, format="%H:%M:%S"):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)