/
master.html
51 lines (46 loc) · 2.03 KB
/
master.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
<head py:match="head" py:attrs="select('@*')">
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title py:replace="''">Your title goes here</title>
<link py:for="css in tg_css" py:replace="ET(css.display())" />
<link py:for="js in tg_js_head" py:replace="ET(js.display())" />
<meta py:replace="select('*')" />
<style type="text/css">
#pageLogin
{
font-size: 10px;
font-family: verdana;
text-align: right;
}
</style>
<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/static/css/style.css')}" />
</head>
<body py:match="body" py:attrs="select('@*')">
<div py:if="tg.config('identity.on') and not defined('logging_in')" id="pageLogin">
<span py:if="tg.identity.anonymous">
<a href="${tg.url(tg.identity.login_url)}">Login</a>
</span>
<span py:if="not tg.identity.anonymous">
Welcome ${tg.identity.user.display_name or tg.identity.user.user_name}.
<a href="${tg.url('/logout')}">Logout</a>
</span>
</div>
<div id="header"> </div>
<div id="main_content">
<div id="status_block" py:if="tg_flash" class="flash" py:content="tg_flash"></div>
<div py:for="js in tg_js_bodytop" py:replace="ET(js.display())" />
<div py:replace="select('*|text()')" />
<div py:for="js in tg_js_bodybottom" py:replace="ET(js.display())" />
</div> <!-- end of main_content -->
<div id="footer"> <img src="${tg.url('/static/images/under_the_hood_blue.png')}" alt="TurboGears" />
<p>TurboGears is a open source front-to-back web development
framework written in Python</p>
<p>Copyright © 2007 Kevin Dangoor</p>
</div>
</body>
</html>