From 14cb9e0d74558c7cd44bb055d3d00af136f8f51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 7 Apr 2010 00:55:02 +0200 Subject: Finish index page --- static/css/style.css | 31 ++++++++++++++++++++++--------- templates/menu.mako | 4 +++- templates/page.mako | 1 + templates/pages/index.mako | 22 +++++++++++++++++++--- templates/root.mako | 2 +- 5 files changed, 46 insertions(+), 14 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 013689e..7a62af8 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -191,32 +191,45 @@ img.right { padding-bottom: 5px; } -/* Boxes */ - -.box1 { - padding: 20px; +.content h2,h3,h4 { + margin-bottom: 0.5em; } -.box2 { - color: #BABABA; +/* Boxes */ + +.box { + background: #9e9e9e; + color: #000; + padding: 5px; + margin: 0.5em 0.5em 2em 0.5em; } -.box2 h2 { +.box h2 { margin-bottom: 15px; font-size: 16px; color: #FFFFFF; } -.box2 ul { +.box ul { margin: 0; padding: 0; list-style: none; } -.box2 a:link, .box2 a:hover, .box2 a:active, .box2 a:visited { +.box a:link, .box a:hover, .box a:active, .box a:visited { color: #EDEDED; } +.box > pre { + margin: 0; + padding: 0; + overflow: auto; +} + +p + .box { + margin-top: -1.5em; +} + /* Footer */ #footer-wrap { } diff --git a/templates/menu.mako b/templates/menu.mako index 4d6fff4..cf9923e 100644 --- a/templates/menu.mako +++ b/templates/menu.mako @@ -2,6 +2,8 @@ menu = [ ("/index", "Portato"), ("/download", "Download"), - ("/development", "Development") + ("/development", "Development"), + ("/translating", "Translating"), + ("http://necoro.wordpress.com", "Blog") ] %> diff --git a/templates/page.mako b/templates/page.mako index e8e582a..14728a3 100644 --- a/templates/page.mako +++ b/templates/page.mako @@ -3,6 +3,7 @@ %> <%inherit file="/root.mako" /> +<%namespace file="/root.mako" inheritable="True" import="hl"/>

${self.attr.title}

${next.body()} diff --git a/templates/pages/index.mako b/templates/pages/index.mako index a5cb8d1..5a08fa7 100644 --- a/templates/pages/index.mako +++ b/templates/pages/index.mako @@ -4,14 +4,30 @@ <%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). + 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. + 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.

Installation

-Portato is delivered with the standard portage tree and can be installed using emerge portato + 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 -o http://portato.sourceforge.net/layman.xml -f -a portato +echo "=app-portage/portato-9999" >> /etc/portage/package.unmask +echo "=app-portage/portato-9999" >> /etc/portage/package.keywords +emerge -av portato + + +

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.

diff --git a/templates/root.mako b/templates/root.mako index c20704d..a6ed47a 100644 --- a/templates/root.mako +++ b/templates/root.mako @@ -39,7 +39,7 @@ <%namespace name="_hl" module="highlighting"/> <%def name="hl(lang)"> -
${_hl.highlight(capture(caller.body), lang)}
+
${_hl.highlight(capture(caller.body), lang)}
<%def name="title()"> -- cgit v1.2.3