Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / dashboard / templates / master.html @ 805cc54a

History | View | Annotate | Download (2.16 KB)

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
        <li><a href="${tg.url('/dashboard')}">Dashboard</a></li>
25
    <span py:if="tg.auth_stack_enabled" py:strip="True">
26
        <li py:if="not request.identity" id="login" class="loginlogout"><a href="${tg.url('/login')}">Login</a></li>
27
        <li py:if="request.identity" id="login" class="loginlogout"><a href="${tg.url('/logout_handler')}">Logout</a></li>
28
        <li py:if="request.identity" id="admin" class="loginlogout"><a href="${tg.url('/admin')}">Admin</a></li>
29
    </span>
30
  </ul>
31
  <div id="content">
32
    <py:if test="defined('page')">
33
    <div class="currentpage">
34
     Now Viewing: <span py:replace="page"/>
35
     </div>
36
    </py:if>
37
    <py:with vars="flash=tg.flash_obj.render('flash', use_js=False)">
38
        <div py:if="flash" py:content="XML(flash)" />
39
    </py:with>
40
    <div py:replace="select('*|text()')"/>
41
    <!-- End of content -->
42
    ${footer()}
43
  </div>
44
</body>
45
</html>