templates/channel.tmpl
author Tero Marttila <terom@fixme.fi>
Fri, 13 Feb 2009 00:29:47 +0200
changeset 121 86aebc9cb60b
parent 114 d4848d807fd1
permissions -rw-r--r--
some quickfixes to fix deployment errors
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>
70
72edbbb414a7 merge channel_view and channel_last, adding a More link to channel_last.tmpl
Tero Marttila <terom@fixme.fi>
parents: 68
diff changeset
     9
        <a href="${urls.channel.build(req, channel=channel)}">Channel:</a>
56
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">
79
43ac75054d5c image formatting \o/
Tero Marttila <terom@fixme.fi>
parents: 71
diff changeset
    13
            ${h.select_options(((ch.id, ch.title) for ch in channel_list), channel.id)}
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    14
            </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
    15
        </form>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    16
    </li>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    17
55
5667d2bbdc50 improve calendar further
Tero Marttila <terom@fixme.fi>
parents: 54
diff changeset
    18
    <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
    19
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
    20
    <li>
64
cdb6403c2498 beginnings of a LogSearchIndex class
Tero Marttila <terom@fixme.fi>
parents: 62
diff changeset
    21
        <a href="${h.build_url(urls.channel_search, channel=channel)}">Search:</a>
cdb6403c2498 beginnings of a LogSearchIndex class
Tero Marttila <terom@fixme.fi>
parents: 62
diff changeset
    22
    </li><li class="join-left">
52
dcb67a8f24be fix to use url.build properly
Tero Marttila <terom@fixme.fi>
parents: 50
diff changeset
    23
        <form action="${urls.channel_search.build(req, channel=channel)}" method="GET">
68
8157c41b3236 improve search form & script
Tero Marttila <terom@fixme.fi>
parents: 65
diff changeset
    24
            <input type="hidden" name="count" value="100" />
8157c41b3236 improve search form & script
Tero Marttila <terom@fixme.fi>
parents: 65
diff changeset
    25
            <input type="text" name="q" value="${search_query if search_query else ''}" />
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
    26
            <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
    27
        </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
    28
    </li>
85
0521cf830eb9 misc. template clean (hide RSS link, remove extra whitespace from calendar source
Tero Marttila <terom@fixme.fi>
parents: 79
diff changeset
    29
<!--
0521cf830eb9 misc. template clean (hide RSS link, remove extra whitespace from calendar source
Tero Marttila <terom@fixme.fi>
parents: 79
diff changeset
    30
    <li><a href="${h.build_url(urls.channel_last, channel=channel, count=count or None, type='rss')}">[RSS]</a></li>
0521cf830eb9 misc. template clean (hide RSS link, remove extra whitespace from calendar source
Tero Marttila <terom@fixme.fi>
parents: 79
diff changeset
    31
-->    
42
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    32
</ul>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    33
</%def>
5a72c00c4ae4 more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents: 41
diff changeset
    34
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
    35
${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
    36
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
    37
<%def name="footer_right()">
71
e909bde831e7 fix index.tmpl, and change tz_name to %Z%z format
Tero Marttila <terom@fixme.fi>
parents: 70
diff changeset
    38
    All times are in <a href="${h.build_url(urls.preferences)}">${h.tz_name(prefs['timezone'])}</a>
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
    39
</%def>