comparison examples/turbogears/markuptest/templates/master.html @ 110:64ff134868c4 trunk

update the example TurboGears app and include an example of using TurboGears wigets
author mgood
date Fri, 28 Jul 2006 18:57:55 +0000
parents e0957965553f
children
comparison
equal deleted inserted replaced
109:230ee6a2c6b2 110:64ff134868c4
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1 <html xmlns="http://www.w3.org/1999/xhtml" 2 <html xmlns="http://www.w3.org/1999/xhtml"
2 xmlns:py="http://markup.edgewall.org/" 3 xmlns:py="http://markup.edgewall.org/"
3 xmlns:xi="http://www.w3.org/2001/XInclude" 4 xmlns:xi="http://www.w3.org/2001/XInclude"
4 py:strip=""> 5 py:strip="">
6
5 <xi:include href="sitetemplate.html"><xi:fallback/></xi:include> 7 <xi:include href="sitetemplate.html"><xi:fallback/></xi:include>
6 8
7 <head py:match="head" py:attrs="select('@*')"> 9 <head py:match="head" py:attrs="select('@*')">
8 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> 10 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
9 <title py:replace="''">Your title goes here</title> 11 <title py:replace="''">Your title goes here</title>
10 ${select('*')} 12 <meta py:replace="select('*')"/>
11 <style type="text/css"> 13 <style type="text/css">
12 #pageLogin 14 #pageLogin
13 { 15 {
14 font-size: 10px; 16 font-size: 10px;
15 font-family: verdana; 17 font-family: verdana;
17 } 19 }
18 </style> 20 </style>
19 </head> 21 </head>
20 22
21 <body py:match="body" py:attrs="select('@*')"> 23 <body py:match="body" py:attrs="select('@*')">
22 <div py:if="tg.config('identity.on', False) and not logging_in" 24 <div py:if="tg.config('identity.on',False) and not logging_in"
23 id="pageLogin"> 25 id="pageLogin"
24 <span py:if="tg.identity.anonymous"> 26 py:choose="">
27 <span py:when="tg.identity.anonymous">
25 <a href="/login">Login</a> 28 <a href="/login">Login</a>
26 </span> 29 </span>
27 <span py:if="not tg.identity.anonymous"> 30 <span py:otherwise="">
28 Welcome ${tg.identity.user.display_name}. 31 Welcome ${tg.identity.user.display_name}.
29 <a href="/logout">Logout</a> 32 <a href="/logout">Logout</a>
30 </span> 33 </span>
31 </div> 34 </div>
32 35
33 <div py:if="tg_flash" class="flash" py:content="tg_flash"></div> 36 <div py:if="tg_flash" class="flash" py:content="tg_flash"></div>
34 37
35 ${select('*')} 38 <div py:replace="select('*')"/>
36 39
37 <p align="center"><img src="/static/images/tg_under_the_hood.png" alt="TurboGears under the hood"/></p> 40 <p align="center"><img src="/static/images/tg_under_the_hood.png" alt="TurboGears under the hood"/></p>
38 </body> 41 </body>
39 42
40 </html> 43 </html>
Copyright (C) 2012-2017 Edgewall Software