comparison contrib/sawmill/web/templates/overview.html @ 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
comparison
equal deleted inserted replaced
485:a55a521b7a31 486:283154e189d9
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 <%
4 from cgi import escape
5 from xml.sax.saxutils import quoteattr
6 %>
7 <html> 3 <html>
8 <%@include file="header.inc" %> 4 <%@include file="header.inc" %>
9 5
10 <div style="text-align: right"> 6 <div style="text-align: right">
11 <a href="http://wald.intevation.de/">...to WALD source code repository</a> 7 <a href="http://wald.intevation.de/">...to WALD source code repository</a>
12 </div> 8 </div>
13 9
14 <% 10 <%
11 from cgi import escape
12 from xml.sax.saxutils import quoteattr
13
15 for treepkg, description in sorted(descriptions, key=lambda x: x[1]): 14 for treepkg, description in sorted(descriptions, key=lambda x: x[1]):
16 # for all descriptions 15 # for all descriptions
17 %> 16 %>
18 <div style="magin:5px;border-bottom:1px solid #DDDDDD;padding:5px;font-weight:bold; font-size: 16pt"> 17 <div style="magin:5px;border-bottom:1px solid #DDDDDD;padding:5px;font-weight:bold; font-size: 16pt">
19 <a href=<%= quoteattr("details.py?treepkg=%s" % treepkg) %>><%= escape(description) %></a> 18 <a href=<%= quoteattr("details.py?treepkg=%s" % treepkg) %>><%= escape(description) %></a>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)