diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-07 00:55:02 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-07 00:55:02 +0200 |
commit | 14cb9e0d74558c7cd44bb055d3d00af136f8f51b (patch) | |
tree | 935ff81f44bbf8b11a10e886767a5d3d2f4415a4 | |
parent | f11fff031cbd632b50951bc9df04efa827cd59f7 (diff) | |
download | web-14cb9e0d74558c7cd44bb055d3d00af136f8f51b.tar.gz web-14cb9e0d74558c7cd44bb055d3d00af136f8f51b.tar.bz2 web-14cb9e0d74558c7cd44bb055d3d00af136f8f51b.zip |
Finish index page
-rw-r--r-- | static/css/style.css | 31 | ||||
-rw-r--r-- | templates/menu.mako | 4 | ||||
-rw-r--r-- | templates/page.mako | 1 | ||||
-rw-r--r-- | templates/pages/index.mako | 22 | ||||
-rw-r--r-- | 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"/> <h1 class="title">${self.attr.title}</h1> ${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" /> <p> -Portato is a GUI for the package manager of <a href="http://www.gentoo.org">Gentoo</a> and <a href="http://www.sabayonlinux.org">Sabayon</a> - Portage. It is mostly written in <a href="http://www.python.org">Python</a> for the GTK+-frontend, which is used in most Linux desktop environments (except KDE). + Portato is a GUI for the package manager of <a href="http://www.gentoo.org">Gentoo</a> and <a href="http://www.sabayonlinux.org">Sabayon</a> - Portage. It is mostly written in <a href="http://www.python.org">Python</a> for the GTK+-frontend, which is used in most Linux desktop environments (except KDE). </p> <p> -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 <a href="development">development version</a>. + 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 <a href="/development">development version</a>. </p> <h2>Installation</h2> <p> -Portato is delivered with the standard portage tree and can be installed using <code>emerge portato</code> + Portato is delivered with the standard portage tree and can be installed using <code>emerge portato</code>. + If you want to use the development version, you need to do the following (given you have installed and configured layman ... if not: see <a href="http://www.gentoo.org/proj/en/overlays/userguide.xml">this guide</a>): +</p> + +<%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 +</%self:hl> + +<h2>Translations</h2> +<p> + Portato does know about the so called <strong>Native Language Support</strong>. It currently supports the following languages: Catalan, English, Italian, German, Polish, Portugese, and Turkish. +</p> +<p> + If you want to add support for another language, please see the <a href="/translating">translation howto</a>. </p> 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)"> - <div><pre class="box2">${_hl.highlight(capture(caller.body), lang)}</pre></div> + <pre class="box">${_hl.highlight(capture(caller.body), lang)}</pre> </%def> <%def name="title()"> |