sites/irclogs.qmsk.net/templates/channel.tmpl
author Tero Marttila <terom@fixme.fi>
Sun, 08 Feb 2009 02:55:53 +0200
branchsites
changeset 184 a3d9aa76790d
parent 183 8c8d082c4657
permissions -rw-r--r--
implement channel_view count, the query stuff, css, layout all need some cleanup :(
183
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
     1
<%inherit file="layout.tmpl" />
181
54d0edb81cb8 the handlers work now
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     2
183
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
     3
<%def name="menu()">
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
     4
<ul>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
     5
    <li><a href="${urls.index.build(req)}">Home</a></li>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
     6
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
     7
    <li>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
     8
        <form action="${urls.channel_select.build(req)}" method="GET">
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
     9
            <label for="channel">Channel:</label>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    10
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    11
            <select name="channel">
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    12
            % for ch in channel_list :
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    13
                <option value="${ch.id}"${' selected="selected"' if ch == channel else ''}>${ch.title}</option>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    14
            % endfor
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    15
            </select><input type="submit" value="Go &raquo;" />
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    16
        </form>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    17
    </li>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    18
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    19
    <li>
184
a3d9aa76790d implement channel_view count, the query stuff, css, layout all need some cleanup :(
Tero Marttila <terom@fixme.fi>
parents: 183
diff changeset
    20
        <form action="" method="GET">
183
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    21
            View last
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    22
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    23
            <select name="count">
184
a3d9aa76790d implement channel_view count, the query stuff, css, layout all need some cleanup :(
Tero Marttila <terom@fixme.fi>
parents: 183
diff changeset
    24
            % for cc in (10, 20, 50, 100, 'all') :
a3d9aa76790d implement channel_view count, the query stuff, css, layout all need some cleanup :(
Tero Marttila <terom@fixme.fi>
parents: 183
diff changeset
    25
                <option${' selected="selected"' if cc == count else ''}>${cc}</option>
183
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    26
            % endfor
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    27
            </select>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    28
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    29
            lines: <input type="submit" value="Go &raquo;" />
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    30
        </form>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    31
    </li>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    32
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    33
    <li><a href="#">Browse by Date</a></li>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    34
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    35
    <li><a href="#">Search</a></li>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    36
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    37
    <li><a href="#">[RSS]</a></li>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    38
</ul>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    39
</%def>
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    40
184
a3d9aa76790d implement channel_view count, the query stuff, css, layout all need some cleanup :(
Tero Marttila <terom@fixme.fi>
parents: 183
diff changeset
    41
<h1>${channel.title} &raquo; Last ${count} lines</h1>
183
8c8d082c4657 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 182
diff changeset
    42
182
53e376e572ce working basic logs stuff
Tero Marttila <terom@fixme.fi>
parents: 181
diff changeset
    43
<pre>
184
a3d9aa76790d implement channel_view count, the query stuff, css, layout all need some cleanup :(
Tero Marttila <terom@fixme.fi>
parents: 183
diff changeset
    44
% for line in lines :
182
53e376e572ce working basic logs stuff
Tero Marttila <terom@fixme.fi>
parents: 181
diff changeset
    45
${line}
53e376e572ce working basic logs stuff
Tero Marttila <terom@fixme.fi>
parents: 181
diff changeset
    46
% endfor
53e376e572ce working basic logs stuff
Tero Marttila <terom@fixme.fi>
parents: 181
diff changeset
    47
</pre>
53e376e572ce working basic logs stuff
Tero Marttila <terom@fixme.fi>
parents: 181
diff changeset
    48