templates/layout.tmpl
author Tero Marttila <terom@fixme.fi>
Fri, 13 Feb 2009 00:29:47 +0200
changeset 121 86aebc9cb60b
parent 119 df859bfdd3be
child 129 67a30d680f60
permissions -rw-r--r--
some quickfixes to fix deployment errors
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%def name="menu()">
<ul>
    <li><a href="${urls.index.build(req)}">Home</a></li>
    <li><a href="${urls.preferences.build(req)}">Preferences</a></li>
    
    <li>
        <span>Channel:</span>
    </li><li class="join-left">
        <form action="${urls.channel_select.build(req)}" method="GET">
            <select name="channel">
            ${h.select_options(((ch.id, ch.title) for ch in channel_list), channel.id if channel else None)}
            </select><input type="submit" value="Go &raquo;" />
        </form>
    </li>
</ul>
</%def>

<%def name="footer_right()">

</%def>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title>irclogs.qmsk.net${(' :: ' + channel.title) if channel else ''}</title>
        <link rel="Stylesheet" type="text/css" href="${req.site_root}/static/irclogs.css" />
    </head>
    <body>
        <div id="menu">
            ${next.menu()}
        </div>

        <div id="content">
            ${next.body()}
        </div>

        <div id="footer">
            <div id="footer-right">
                ${next.footer_right()}
            </div>

            <div id="footer-left">
                ${config.HTML_FOOTER_TEXT}
            </div>

            <div id="footer-center">
                ${h.validation_notice(req.site_host)}
            </div>
        </div>
    </body>
</html>