diff options
Diffstat (limited to '')
-rw-r--r-- | templates/root.mako | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/templates/root.mako b/templates/root.mako index 669cd21..e625d88 100644 --- a/templates/root.mako +++ b/templates/root.mako @@ -2,7 +2,7 @@ <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"> + <link rel="shortcut icon" href=${"/favicon.ico" | url} type="image/icon"> <title>${self.title()}</title> ${self.style()} </head> @@ -10,8 +10,8 @@ <body> <div id="wrapper"> <div id="logo"> - <img src=${"/static/images/portato.png" | w.url} /> - <h1><a href="./">Portato</a></h1> + <img src=${"/static/images/portato.png" | url} /> + <h1><a href=${"/" | url}>Portato</a></h1> <h2>» A Portage GUI</h2> </div> @@ -43,19 +43,20 @@ </%def> <%def name="style()"> - <link href=${"/static/css/style.css" | w.url} rel="stylesheet" type="text/css" /> + <link href=${"/static/css/style.css" | 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> | + 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()"> + <%namespace file="menu.mako" name="m" /> <ul> - % for page, uri in menulist: - <li class="current_page_item"><a href="${page}">${local.get_namespace(uri).menu_name()}</a></li> + % for uri, page in m.attr.menu: + <li class="current_page_item"><a href=${uri | url}>${page}</a></li> % endfor </ul> </%def> |