summaryrefslogtreecommitdiff
path: root/templates/root.mako
blob: b05e7fdbf1473a17650217e999e0fccee2db948a (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        ${self.js()}
        <link rel="shortcut icon" href=${"/static/images/currency.png" | url} type="image/icon">
        <title>${self.title()}</title>
        ${self.style()}
    </head>

    <body>
        <div id="wrapper">
            <div id="logo">
                <img src=${"/static/images/currency.png" | url} />
                <h1><a href=${"/" | url}>Kosten</a></h1>
                <h2>»   vom Nec</h2>
            </div>

            <div id="header">
                <div id="menu">
                    ${self.menu()}
                </div>
            </div>
        </div>

        <div id="page">
            <div class="content">
                ${next.body()}
            </div>
            <div style="clear: both;"></div>
        </div>
        <div id="footer">
            <p id="legal">
                ${self.footer()}
            </p>
        </div>
    </body>
</html>

## functions

<%def name="title()">
    Kostenverwaltung
</%def>

<%def name="style()">
    <link href=${"/static/css/style.css" | url} rel="stylesheet" type="text/css" />
</%def>

<%def name="js()">
    <script type="text/javascript" src=${"/static/js/jquery-1.4.2.js" | url}></script>
    <script type="text/javascript" src=${"/static/js/lib.js" | url}></script>
</%def>

<%def name="footer()">
    powered by <a href="http://www.makotemplates.org">mako</a> &amp; <a href="http://www.webpy.org">web.py</a> | 
    © 2010-2011. All Rights Reserved. René Neumann | 
    with the help of <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.
</%def>

<%def name="menu()">
    <%namespace file="menu.mako" name="m" />
    <ul>
    % for uri, page in m.attr.menu:
        <li><a href=${uri | url}>${page}</a></li>
    % endfor
    </ul>
</%def>