1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
4 | xmlns:py="http://genshi.edgewall.org/" |
---|
5 | xmlns:xi="http://www.w3.org/2001/XInclude" |
---|
6 | py:strip=""> |
---|
7 | <xi:include href="header.html" /> |
---|
8 | <xi:include href="sidebars.html" /> |
---|
9 | <xi:include href="footer.html" /> |
---|
10 | <head py:match="head" py:attrs="select('@*')"> |
---|
11 | <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> |
---|
12 | <title py:replace="''">Your title goes here</title> |
---|
13 | <meta py:replace="select('*')"/> |
---|
14 | <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/style.css')}" /> |
---|
15 | </head> |
---|
16 | |
---|
17 | <body py:match="body" py:attrs="select('@*')"> |
---|
18 | ${header()} |
---|
19 | <ul id="mainmenu"> |
---|
20 | <li class="first"><a href="${tg.url('/')}" class="${('', 'active')[defined('page') and page==page=='index']}">Welcome</a></li> |
---|
21 | <li><a href="${tg.url('/about')}" class="${('', 'active')[defined('page') and page==page=='about']}">About</a></li> |
---|
22 | <li py:if="tg.auth_stack_enabled"><a href="${tg.url('/auth')}" class="${('', 'active')[defined('page') and page==page=='auth']}">Authentication</a></li> |
---|
23 | <li><a href="http://groups.google.com/group/turbogears">Contact</a></li> |
---|
24 | <span py:if="tg.auth_stack_enabled" py:strip="True"> |
---|
25 | <li py:if="not request.identity" id="login" class="loginlogout"><a href="${tg.url('/login')}">Login</a></li> |
---|
26 | <li py:if="request.identity" id="login" class="loginlogout"><a href="${tg.url('/logout_handler')}">Logout</a></li> |
---|
27 | <li py:if="request.identity" id="admin" class="loginlogout"><a href="${tg.url('/admin')}">Admin</a></li> |
---|
28 | </span> |
---|
29 | </ul> |
---|
30 | <div id="content"> |
---|
31 | <py:if test="defined('page')"> |
---|
32 | <div class="currentpage"> |
---|
33 | Now Viewing: <span py:replace="page"/> |
---|
34 | </div> |
---|
35 | </py:if> |
---|
36 | <py:with vars="flash=tg.flash_obj.render('flash', use_js=False)"> |
---|
37 | <div py:if="flash" py:content="XML(flash)" /> |
---|
38 | </py:with> |
---|
39 | <div py:replace="select('*|text()')"/> |
---|
40 | <!-- End of main_content --> |
---|
41 | ${footer()} |
---|
42 | </div> |
---|
43 | </body> |
---|
44 | </html> |
---|