summaryrefslogtreecommitdiff
path: root/templates
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
downloadweb-492433abe865220c227e62cf12f3c93856432585.tar.gz
web-492433abe865220c227e62cf12f3c93856432585.tar.bz2
web-492433abe865220c227e62cf12f3c93856432585.zip
Initial Portato Website
Diffstat (limited to 'templates')
-rw-r--r--templates/menu.lst3
-rw-r--r--templates/page.mako14
-rw-r--r--templates/pages/development.mako7
-rw-r--r--templates/pages/download.mako7
-rw-r--r--templates/pages/index.mako8
-rw-r--r--templates/root.mako61
6 files changed, 100 insertions, 0 deletions
diff --git a/templates/menu.lst b/templates/menu.lst
new file mode 100644
index 0000000..4560d9b
--- /dev/null
+++ b/templates/menu.lst
@@ -0,0 +1,3 @@
+index
+download
+development
diff --git a/templates/page.mako b/templates/page.mako
new file mode 100644
index 0000000..4543cc0
--- /dev/null
+++ b/templates/page.mako
@@ -0,0 +1,14 @@
+<%!
+ title = ""
+%>
+
+<%inherit file="/root.mako" />
+
+<h1 class="title">${self.attr.title}</h1>
+<div class="entry">
+ ${next.body()}
+</div>
+
+<%def name="menu_name()">
+ ${self.attr.title}
+</%def>
diff --git a/templates/pages/development.mako b/templates/pages/development.mako
new file mode 100644
index 0000000..20fc521
--- /dev/null
+++ b/templates/pages/development.mako
@@ -0,0 +1,7 @@
+<%!
+ title = "Development"
+%>
+<%inherit file="/page.mako" />
+<p>
+Developers, Developers, Developers
+</p>
diff --git a/templates/pages/download.mako b/templates/pages/download.mako
new file mode 100644
index 0000000..87b1a6f
--- /dev/null
+++ b/templates/pages/download.mako
@@ -0,0 +1,7 @@
+<%!
+ title = "Download"
+%>
+<%inherit file="/page.mako" />
+<p>
+From somewhere...
+</p>
diff --git a/templates/pages/index.mako b/templates/pages/index.mako
new file mode 100644
index 0000000..6dec44b
--- /dev/null
+++ b/templates/pages/index.mako
@@ -0,0 +1,8 @@
+<%!
+ title = "Portato"
+%>
+<%inherit file="/page.mako" />
+
+<p>
+Hier haben wir als irgendwas über Portato.
+</p>
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>