1
by Thomas Goirand
Import upstream version 2.0.0 |
1 |
<% self.seen_css = set() %> |
2 |
<%def name="css_link(path, media='')" filter="trim"> |
|
3 |
% if path not in self.seen_css: |
|
4 |
<link rel="stylesheet" type="text/css" href="${path|h}" media="${media}"> |
|
5 |
% endif
|
|
6 |
<% self.seen_css.add(path) %> |
|
7 |
</%def>
|
|
8 |
<%def name="css()" filter="trim"> |
|
9 |
${css_link('/static/css/main.css', 'screen')} |
|
10 |
</%def> |
|
11 |
<%def name="pre()" filter="trim">
|
|
12 |
<div class="header"> |
|
13 |
<h1><a href="/">Login</a></h1> |
|
14 |
</div> |
|
15 |
</%def>
|
|
16 |
<%def name="post()" filter="trim"> |
|
17 |
<div> |
|
18 |
<div class="footer"> |
|
19 |
<p>© Copyright 2011 Umeå Universitet </p> |
|
20 |
</div> |
|
21 |
</div> |
|
22 |
</%def> |
|
23 |
##<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN " |
|
24 |
##"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
25 |
<html>
|
|
26 |
<head><title>IDP test login</title>
|
|
27 |
${self.css()}
|
|
28 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
29 |
</head>
|
|
30 |
<body>
|
|
31 |
${pre()}
|
|
32 |
## ${comps.dict_to_table(pageargs)}
|
|
33 |
## <hr><hr>
|
|
34 |
${next.body()}
|
|
35 |
${post()}
|
|
36 |
</body>
|
|
37 |
</html>
|