templates/layout.tmpl
author Tero Marttila <terom@fixme.fi>
Wed, 11 Feb 2009 04:04:55 +0200
changeset 102 e396613bc873
parent 83 a34e9f56ddda
child 119 df859bfdd3be
permissions -rw-r--r--
have LogDirectory use utils.mtime instead of os.stat
<!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">

            </div>

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