summaryrefslogtreecommitdiff
path: root/templates/root.mako
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-11-25 22:49:43 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-11-25 22:49:43 +0100
commit492433abe865220c227e62cf12f3c93856432585 (patch)
treec33d0562c3c1c2dfde298eb083d5fd39c5fe8984 /templates/root.mako
downloadweb-492433abe865220c227e62cf12f3c93856432585.tar.gz
web-492433abe865220c227e62cf12f3c93856432585.tar.bz2
web-492433abe865220c227e62cf12f3c93856432585.zip
Initial Portato Website
Diffstat (limited to 'templates/root.mako')
-rw-r--r--templates/root.mako61
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>