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..97bd983 --- /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" | w.url} type="image/icon"> + <title>${self.title()}</title> + ${self.style()} + </head> + + <body> + <div id="wrapper"> + <div id="logo"> + <img src=${"/images/portato.png" | w.url} /> + <h1><a href="./">Portato</a></h1> + <h2>» A Portage GUI</h2> + </div> + + <div id="header"> + <div id="menu"> + ${self.menu()} + </div> + </div> + </div> + + <div id="page"> + <div id="content"> + <div class="post"> + ${next.body()} + </div> + </div> + <div style="clear: both;"> </div> + </div> + <div id="footer"> + <p id="legal"> + ${self.footer()} + </p> + </div> + </body> +</html> + +<%def name="title()"> + Portato +</%def> + +<%def name="style()"> + <link href=${"/css/style.css" | w.url} rel="stylesheet" type="text/css" /> +</%def> + +<%def name="footer()"> + powered by <a href="http://www.webpy.org">web.py</a> & <a href="http://www.makotemplates.org">mako</a> | + © 2009. All Rights Reserved. René Neumann | + with the help of <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>. +</%def> + +<%def name="menu()"> + <ul> + % for page, uri in menulist: + <li class="current_page_item"><a href="${page}">${local.get_namespace(uri).menu_name()}</a></li> + % endfor + </ul> +</%def> |