author | Tero Marttila <terom@fixme.fi> |
Mon, 09 Feb 2009 13:19:00 +0200 | |
changeset 69 | 1f182913b1f2 |
parent 68 | 8157c41b3236 |
child 70 | 72edbbb414a7 |
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> |
56 | 9 |
<a href="${urls.channel_view.build(req, channel=channel)}">Channel:</a> |
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 »" /> |
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 |
|
64
cdb6403c2498
beginnings of a LogSearchIndex class
Tero Marttila <terom@fixme.fi>
parents:
62
diff
changeset
|
20 |
<!-- |
42
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
21 |
<li> |
57
e123721e4b34
fix use of urls.channel_view.build with no count
Tero Marttila <terom@fixme.fi>
parents:
56
diff
changeset
|
22 |
<a href="${urls.channel_view.build(req, channel=channel, count=count or None)}">View last:</a> |
56 | 23 |
</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
|
24 |
<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
|
25 |
<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
|
26 |
% 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
|
27 |
<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
|
28 |
% endfor |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
29 |
</select> |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
30 |
|
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
31 |
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
|
32 |
</form> |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
33 |
</li> |
64
cdb6403c2498
beginnings of a LogSearchIndex class
Tero Marttila <terom@fixme.fi>
parents:
62
diff
changeset
|
34 |
--> |
55 | 35 |
<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
|
36 |
|
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
|
37 |
<li> |
64
cdb6403c2498
beginnings of a LogSearchIndex class
Tero Marttila <terom@fixme.fi>
parents:
62
diff
changeset
|
38 |
<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
|
39 |
</li><li class="join-left"> |
52
dcb67a8f24be
fix to use url.build properly
Tero Marttila <terom@fixme.fi>
parents:
50
diff
changeset
|
40 |
<form action="${urls.channel_search.build(req, channel=channel)}" method="GET"> |
68 | 41 |
<input type="hidden" name="count" value="100" /> |
42 |
<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
|
43 |
<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
|
44 |
</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
|
45 |
</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
|
46 |
|
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
47 |
<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
|
48 |
</ul> |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
49 |
</%def> |
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 |
${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
|
52 |
|
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 name="footer_right()"> |
62
e7ca94b94a4e
add prefs to render context, and remove old timezone/formatter from it
Tero Marttila <terom@fixme.fi>
parents:
59
diff
changeset
|
54 |
All times are in <strong>${h.tz_name(prefs['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
|
55 |
</%def> |