From f0012811f8af8b1334b46781861a6dd3777ee392 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 3 May 2010 18:21:53 +0200 Subject: First import from portato proj --- templates/404.mako | 7 ++++++ templates/menu.mako | 5 ++++ templates/page.mako | 46 ++++++++++++++++++++++++++++++++++ templates/pages/index.mako | 49 +++++++++++++++++++++++++++++++++++++ templates/root.mako | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 168 insertions(+) create mode 100644 templates/404.mako create mode 100644 templates/menu.mako create mode 100644 templates/page.mako create mode 100644 templates/pages/index.mako create mode 100644 templates/root.mako (limited to 'templates') diff --git a/templates/404.mako b/templates/404.mako new file mode 100644 index 0000000..aeb95e3 --- /dev/null +++ b/templates/404.mako @@ -0,0 +1,7 @@ +<%! + title = "404 -- Page not found!" +%> +<%inherit file="/page.mako" /> +

+Sorry - the requested page ${page} cannot be found. +

diff --git a/templates/menu.mako b/templates/menu.mako new file mode 100644 index 0000000..64701b2 --- /dev/null +++ b/templates/menu.mako @@ -0,0 +1,5 @@ +<%! + menu = [ + ("/index", "Kosten"), + ] +%> diff --git a/templates/page.mako b/templates/page.mako new file mode 100644 index 0000000..aa2aa51 --- /dev/null +++ b/templates/page.mako @@ -0,0 +1,46 @@ +<%! + title = "" + uses_toc = False +%> +<% + page_text = capture(next.body) +%> + +<%inherit file="/root.mako" /> + +## content + +

${self.attr.title}

+% if self.attr.uses_toc: + ${self.preface()} + ${self.toc()} +% endif + +${page_text} + +## functions + +<%def name="h2(tag='h2')"> + <% + if self.attr.uses_toc: + c = capture(caller.body) + name = c.replace(" ", "_").replace("/", "_").lower() + tlist = getattr(self.attr, "tlist", []) + tlist.append((str(name), str(c))) + + self.attr.tlist = tlist + else: + name = "#" + %> + <${tag}>» ${caller.body()} + + +<%def name="toc()"> + + + +<%def name="preface()"> diff --git a/templates/pages/index.mako b/templates/pages/index.mako new file mode 100644 index 0000000..8ce483e --- /dev/null +++ b/templates/pages/index.mako @@ -0,0 +1,49 @@ +<%! + title = "Portato" +%> +<%inherit file="/page.mako" /> + +

+ Portato is a GUI for the package manager of Gentoo and Sabayon - Portage. It is mostly written in Python for the GTK+-frontend, which is used in most Linux desktop environments (except KDE). +

+ +

+ As the current portage development is quite fast-paced, Portato is not able to keep step. Thus it might be that the released version(s) do not behave as expected. In these cases also try the development version. +

+ +<%self:h2>Installation +

+ Portato is delivered with the standard portage tree and can be installed using emerge portato. + If you want to use the development version, you need to do the following (given you have installed and configured layman ... if not: see this guide): +

+ +<%self:hl lang="bash"> +layman -a portato +echo "=app-portage/portato-9999" >> /etc/portage/package.unmask +echo "=app-portage/portato-9999" >> /etc/portage/package.keywords +emerge -av portato + + +<%self:h2>Translations +

+ Portato does know about the so called Native Language Support. It currently supports the following languages: Catalan, English, Italian, German, Polish, Portugese, and Turkish. +

+

+ If you want to add support for another language, please see the translation howto. +

+ +<%self:h2>Forums +

+ This project itself does not have any forums. But there are a couple of threads in other forums:
+ If you are using Gentoo look into this forum thread (engl) or into the German one. If you are using Sabayon, use this one. +

+ +<%self:h2>Similar projects +

+ Of course there are other projects too, which do the same or at least a similar job. These are for example: +

+ diff --git a/templates/root.mako b/templates/root.mako new file mode 100644 index 0000000..bfadb2a --- /dev/null +++ b/templates/root.mako @@ -0,0 +1,61 @@ + + + + + + ${self.title()} + ${self.style()} + + + +
+ + + +
+ +
+
+ ${next.body()} +
+
 
+
+ + + + +## functions + +<%def name="title()"> + Kostenverwaltung + + +<%def name="style()"> + + + +<%def name="footer()"> + powered by mako & web.py | + © 2010. All Rights Reserved. René Neumann | + with the help of Free CSS Templates. + + +<%def name="menu()"> + <%namespace file="menu.mako" name="m" /> + + -- cgit v1.2.3-54-g00ecf