diff options
Diffstat (limited to '')
-rw-r--r-- | templates/menu.lst | 3 | ||||
-rw-r--r-- | templates/menu.mako | 7 | ||||
-rw-r--r-- | templates/root.mako | 15 |
3 files changed, 15 insertions, 10 deletions
diff --git a/templates/menu.lst b/templates/menu.lst deleted file mode 100644 index 4560d9b..0000000 --- a/templates/menu.lst +++ /dev/null @@ -1,3 +0,0 @@ -index -download -development diff --git a/templates/menu.mako b/templates/menu.mako new file mode 100644 index 0000000..4d6fff4 --- /dev/null +++ b/templates/menu.mako @@ -0,0 +1,7 @@ +<%! + menu = [ + ("/index", "Portato"), + ("/download", "Download"), + ("/development", "Development") + ] +%> 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> |