changeset 118 | f530c158aa07 |
parent 79 | 43ac75054d5c |
child 141 | 65c98c9e1716 |
117:f0b4097f5781 | 118:f530c158aa07 |
---|---|
4 % if not search_query : |
4 % if not search_query : |
5 <div id="title">${channel.title} :: Search</div> |
5 <div id="title">${channel.title} :: Search</div> |
6 |
6 |
7 <div id="search"> |
7 <div id="search"> |
8 <form action="${h.build_url(urls.channel_search, channel=channel)}" method="GET"> |
8 <form action="${h.build_url(urls.channel_search, channel=channel)}" method="GET"> |
9 <input type="text" name="q" /> |
9 |
10 <input type="submit" value="Search" /> |
10 <div id="search-form"> |
11 <input type="text" name="q" /> |
|
12 <input type="submit" value="Search" /> |
|
13 </div> |
|
11 |
14 |
12 Results/page: <select name="count"> |
15 <p> |
16 <label for="count">Results/page:</label> |
|
17 <select name="count"> |
|
13 ${h.select_options(((cc, cc_label) for cc, cc_label in config.SEARCH_LINE_COUNT_OPTIONS), count)} |
18 ${h.select_options(((cc, cc_label) for cc, cc_label in config.SEARCH_LINE_COUNT_OPTIONS), count)} |
14 </select> |
19 </select> |
20 </p> |
|
21 <label for="t">Search in:</label><br/> |
|
22 <div class="indent"><input type="radio" name="t" value="msg" checked="checked" /> Messages</div> |
|
23 <div class="indent"><input type="radio" name="t" value="nick" /> Nicknames</div> |
|
15 </form> |
24 </form> |
16 |
25 |
17 <div id="search-help"> |
26 <div id="search-help"> |
18 <p>Search powered by <a href="http://hyperestraier.sourceforge.net/">Hyper Estraier</a>:</p> |
27 <p>Search powered by <a href="http://hyperestraier.sourceforge.net/">Hyper Estraier</a>:</p> |
19 |
28 |
28 </div> |
37 </div> |
29 |
38 |
30 % else : |
39 % else : |
31 <div id="title">${channel.title} :: Search '${search_query}'</div> |
40 <div id="title">${channel.title} :: Search '${search_query}'</div> |
32 |
41 |
33 ${paginate(urls.channel_search, count, page, max, channel=channel, q=search_query, _more=True, _last=not(bool(lines)))} |
42 ${paginate(urls.channel_search, count, page, max, channel=channel, q=search_query, t=search_targets, _more=True, _last=not(bool(lines)))} |
34 % if lines : |
43 % if lines : |
35 <%include file="lines.tmpl" /> |
44 <%include file="lines.tmpl" /> |
36 % else : |
45 % else : |
37 <div id="search-error">No results found</div> |
46 <div id="search-error">No results found</div> |
38 % endif |
47 % endif |
39 ${paginate(urls.channel_search, count, page, max, channel=channel, q=search_query, _more=True, _last=not(bool(lines)))} |
48 ${paginate(urls.channel_search, count, page, max, channel=channel, q=search_query, t=search_targets, _more=True, _last=not(bool(lines)))} |
40 % endif |
49 % endif |