templates/channel.tmpl
author Tero Marttila <terom@fixme.fi>
Mon, 09 Feb 2009 06:04:27 +0200
changeset 56 69494e4a5ecc
parent 55 5667d2bbdc50
child 57 e123721e4b34
permissions -rw-r--r--
tweak layout slightly
<%inherit file="layout.tmpl" />

<%def name="menu()">
<ul>
    <li><a href="${urls.index.build(req)}">Home</a></li>

    <li>
        <a href="${urls.channel_view.build(req, channel=channel)}">Channel:</a>
    </li><li class="join-left">
        <form action="${urls.channel_select.build(req)}" method="GET">
            <select name="channel">
            % for ch in channel_list :
                <option value="${ch.id}"${' selected="selected"' if ch == channel else ''}>${ch.title}</option>
            % endfor
            </select><input type="submit" value="Go &raquo;" />
        </form>
    </li>

    <li>
        <a href="${urls.channel_view.build(req, channel=channel, count=count)}">View last:</a>
    </li><li class="join-left">
        <form action="" method="GET">
            <select name="count">
            % for cc in (10, 20, 50, 100, 'all') :
                <option${' selected="selected"' if cc == count else ''}>${cc}</option>
            % endfor
            </select>

            lines: <input type="submit" value="Go &raquo;" />
        </form>
    </li>

    <li><a href="${urls.channel_calendar.build(req, channel=channel)}">Browse by Date</a></li>

    <li>
        <form action="${urls.channel_search.build(req, channel=channel)}" method="GET">
            <label for="q">Search:</label>

            <input name="q"></input>
            <input type="submit" value="Go &raquo;" />
        </form>
    </li>

    <li><a href="#">[RSS]</a></li>
</ul>
</%def>

${next.body()}

<%def name="footer_right()">
    All times are in <strong>${h.tz_name(timezone)}</strong>
</%def>