templates/channel.tmpl
author Tero Marttila <terom@fixme.fi>
Mon, 09 Feb 2009 06:56:04 +0200
changeset 59 8ec729c5d998
parent 57 e123721e4b34
child 62 e7ca94b94a4e
permissions -rw-r--r--
ugly, but working, preferences editor
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
     1
<%inherit file="layout.tmpl" />
40
71ab68f31a1c the handlers work now
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     2
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
     3
<%def name="menu()">
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
     4
<ul>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
     5
    <li><a href="${urls.index.build(req)}">Home</a></li>
59
8ec729c5d998 ugly, but working, preferences editor
Tero Marttila <terom@fixme.fi>
parents: 57
diff changeset
     6
    <li><a href="${urls.preferences.build(req)}">Preferences</a></li>
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
     7
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
     8
    <li>
56
69494e4a5ecc tweak layout slightly
Tero Marttila <terom@fixme.fi>
parents: 55
diff changeset
     9
        <a href="${urls.channel_view.build(req, channel=channel)}">Channel:</a>
69494e4a5ecc tweak layout slightly
Tero Marttila <terom@fixme.fi>
parents: 55
diff changeset
    10
    </li><li class="join-left">
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    11
        <form action="${urls.channel_select.build(req)}" method="GET">
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    12
            <select name="channel">
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    13
            % for ch in channel_list :
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    14
                <option value="${ch.id}"${' selected="selected"' if ch == channel else ''}>${ch.title}</option>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    15
            % endfor
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    16
            </select><input type="submit" value="Go &raquo;" />
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    17
        </form>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    18
    </li>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    19
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    20
    <li>
57
e123721e4b34 fix use of urls.channel_view.build with no count
Tero Marttila <terom@fixme.fi>
parents: 56
diff changeset
    21
        <a href="${urls.channel_view.build(req, channel=channel, count=count or None)}">View last:</a>
56
69494e4a5ecc tweak layout slightly
Tero Marttila <terom@fixme.fi>
parents: 55
diff changeset
    22
    </li><li class="join-left">
43
fc11c4e86a82 implement channel_view count, the query stuff, css, layout all need some cleanup :(
Tero Marttila <terom@fixme.fi>
parents: 42
diff changeset
    23
        <form action="" method="GET">
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    24
            <select name="count">
43
fc11c4e86a82 implement channel_view count, the query stuff, css, layout all need some cleanup :(
Tero Marttila <terom@fixme.fi>
parents: 42
diff changeset
    25
            % for cc in (10, 20, 50, 100, 'all') :
fc11c4e86a82 implement channel_view count, the query stuff, css, layout all need some cleanup :(
Tero Marttila <terom@fixme.fi>
parents: 42
diff changeset
    26
                <option${' selected="selected"' if cc == count else ''}>${cc}</option>
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    27
            % endfor
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    28
            </select>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    29
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    30
            lines: <input type="submit" value="Go &raquo;" />
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    31
        </form>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    32
    </li>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    33
55
5667d2bbdc50 improve calendar further
Tero Marttila <terom@fixme.fi>
parents: 54
diff changeset
    34
    <li><a href="${urls.channel_calendar.build(req, channel=channel)}">Browse by Date</a></li>
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    35
49
aaa62c8e5bd5 add search form to menu, remove styling from inputs/selects other than the submit button
Tero Marttila <terom@fixme.fi>
parents: 48
diff changeset
    36
    <li>
52
dcb67a8f24be fix to use url.build properly
Tero Marttila <terom@fixme.fi>
parents: 50
diff changeset
    37
        <form action="${urls.channel_search.build(req, channel=channel)}" method="GET">
49
aaa62c8e5bd5 add search form to menu, remove styling from inputs/selects other than the submit button
Tero Marttila <terom@fixme.fi>
parents: 48
diff changeset
    38
            <label for="q">Search:</label>
aaa62c8e5bd5 add search form to menu, remove styling from inputs/selects other than the submit button
Tero Marttila <terom@fixme.fi>
parents: 48
diff changeset
    39
aaa62c8e5bd5 add search form to menu, remove styling from inputs/selects other than the submit button
Tero Marttila <terom@fixme.fi>
parents: 48
diff changeset
    40
            <input name="q"></input>
aaa62c8e5bd5 add search form to menu, remove styling from inputs/selects other than the submit button
Tero Marttila <terom@fixme.fi>
parents: 48
diff changeset
    41
            <input type="submit" value="Go &raquo;" />
aaa62c8e5bd5 add search form to menu, remove styling from inputs/selects other than the submit button
Tero Marttila <terom@fixme.fi>
parents: 48
diff changeset
    42
        </form>
aaa62c8e5bd5 add search form to menu, remove styling from inputs/selects other than the submit button
Tero Marttila <terom@fixme.fi>
parents: 48
diff changeset
    43
    </li>
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    44
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    45
    <li><a href="#">[RSS]</a></li>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    46
</ul>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    47
</%def>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    48
50
f13cf27a360b implement more LogSource features (logs for date, cleanup last_logs), implement irssi parser, formatter, other misc. stuff
Tero Marttila <terom@fixme.fi>
parents: 49
diff changeset
    49
${next.body()}
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    50
50
f13cf27a360b implement more LogSource features (logs for date, cleanup last_logs), implement irssi parser, formatter, other misc. stuff
Tero Marttila <terom@fixme.fi>
parents: 49
diff changeset
    51
<%def name="footer_right()">
54
b65a95eb9f6b implement browse-by-date to show a nice calendar
Tero Marttila <terom@fixme.fi>
parents: 52
diff changeset
    52
    All times are in <strong>${h.tz_name(timezone)}</strong>
50
f13cf27a360b implement more LogSource features (logs for date, cleanup last_logs), implement irssi parser, formatter, other misc. stuff
Tero Marttila <terom@fixme.fi>
parents: 49
diff changeset
    53
</%def>