diff options
Diffstat (limited to 'templates/root.mako')
-rw-r--r-- | templates/root.mako | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/templates/root.mako b/templates/root.mako new file mode 100644 index 0000000..bfadb2a --- /dev/null +++ b/templates/root.mako @@ -0,0 +1,61 @@ +<!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" /> + <!-- <link rel="shortcut icon" href=${"favicon.ico" | url} type="image/icon"> --> + <title>${self.title()}</title> + ${self.style()} + </head> + + <body> + <div id="wrapper"> + <div id="logo"> + <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="footer()"> + powered by <a href="http://www.makotemplates.org">mako</a> & <a href="http://www.webpy.org">web.py</a> | + © 2010. 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> |