| author | Tero Marttila <terom@fixme.fi> |
| Tue, 10 Feb 2009 03:22:43 +0200 | |
| changeset 80 | a0662cff1d9d |
| parent 79 | 43ac75054d5c |
| child 85 | 0521cf830eb9 |
| permissions | -rw-r--r-- |
|
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 | 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 | 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 | 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 »" /> |
|
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 |
|
|
64
cdb6403c2498
beginnings of a LogSearchIndex class
Tero Marttila <terom@fixme.fi>
parents:
62
diff
changeset
|
18 |
<!-- |
|
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 |
<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
|
20 |
<a href="${urls.channel_last.build(req, channel=channel, count=count or None)}">View last:</a>
|
| 56 | 21 |
</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
|
22 |
<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
|
23 |
<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
|
24 |
% 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
|
25 |
<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
|
26 |
% endfor |
|
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
27 |
</select> |
|
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
28 |
|
|
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
29 |
lines: <input type="submit" value="Go »" /> |
|
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
30 |
</form> |
|
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
31 |
</li> |
|
64
cdb6403c2498
beginnings of a LogSearchIndex class
Tero Marttila <terom@fixme.fi>
parents:
62
diff
changeset
|
32 |
--> |
| 55 | 33 |
<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
|
34 |
|
|
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
|
35 |
<li> |
|
64
cdb6403c2498
beginnings of a LogSearchIndex class
Tero Marttila <terom@fixme.fi>
parents:
62
diff
changeset
|
36 |
<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
|
37 |
</li><li class="join-left"> |
|
52
dcb67a8f24be
fix to use url.build properly
Tero Marttila <terom@fixme.fi>
parents:
50
diff
changeset
|
38 |
<form action="${urls.channel_search.build(req, channel=channel)}" method="GET">
|
| 68 | 39 |
<input type="hidden" name="count" value="100" /> |
40 |
<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
|
41 |
<input type="submit" value="Go »" /> |
|
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()"> |
|
71
e909bde831e7
fix index.tmpl, and change tz_name to %Z%z format
Tero Marttila <terom@fixme.fi>
parents:
70
diff
changeset
|
52 |
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
|
53 |
</%def> |