templates/channel.tmpl
author Tero Marttila <terom@fixme.fi>
Mon, 09 Feb 2009 00:24:13 +0200
changeset 50 f13cf27a360b
parent 49 aaa62c8e5bd5
child 52 dcb67a8f24be
permissions -rw-r--r--
implement more LogSource features (logs for date, cleanup last_logs), implement irssi parser, formatter, other misc. stuff
<%inherit file="layout.tmpl" />

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

    <li>
        <form action="${urls.channel_select.build(req)}" method="GET">
            <label for="channel">Channel:</label>

            <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>
        <form action="" method="GET">
            View last

            <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="#">Browse by Date</a></li>

    <li>
        <form action="${urls.channel_search.build(req, channel=channel.id)}" 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(formatter.tz)}</strong>
</%def>