templates/layout.tmpl
author Tero Marttila <terom@fixme.fi>
Sat, 07 Feb 2009 01:33:30 +0200
changeset 11 fa216534ae45
parent 10 d83b10c210e3
child 12 2abc5ace0b15
permissions -rw-r--r--
funky PageTree stuff
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title>qmsk.net :: ${page.title}</title>
        <link rel="Stylesheet" type="text/css" href="${site_root_url}/static/style.css" />
    </head>
    <body>
            <div id="header">
                <a href="${site_page_url}/">QMSK.NET</a>
            </div>
 
            <ul id="nav">
            % if menu.page.parent and menu.page.parent.parent :
                <li><a href="${site_page_url}/${menu.page.parent.url}">&laquo;</a></li>
            % endif
            % for pi in menu.items :
                <li><a href="${site_page_url}/${pi.url}"${' class="selected-page"' if pi.url == page.url else ''}>${pi.title} ${'&raquo;' if pi.children and pi.parent else ''}</a></li>
            % endfor
            </ul>

            <div id="content">
                ${page.content}
            </div>
    </body>
</html>