templates/channel_search.tmpl
changeset 68 8157c41b3236
parent 65 8b50694f841e
child 69 1f182913b1f2
equal deleted inserted replaced
67:13975aa16b4c 68:8157c41b3236
     1 <%inherit file="channel.tmpl" />
     1 <%inherit file="channel.tmpl" />
     2 
     2 
     3 % if not search_query :
     3 % if not search_query :
     4 <div id="title">${channel.title} :: Search</div>
     4 <div id="title">${channel.title} :: Search</div>
     5 
     5 
     6 <form action="${h.build_url(urls.channel_search, channel=channel)}" method="GET">
     6 <div id="search">
     7     <p>
     7     <form action="${h.build_url(urls.channel_search, channel=channel)}" method="GET">
     8         <input type="text" name="q" />
     8         <input type="text" name="q" />
     9         <input type="submit" value="Search" />
     9         <input type="submit" value="Search" />
    10     </p>
    10         
    11 </form>
    11         Results/page: <select name="count">
       
    12             <option value="50">50</option>
       
    13             <option value="100">100</option>
       
    14             <option value="200">200</option>
       
    15             <option value="">&#8734;</option>
       
    16         </select>
       
    17     </form>
       
    18     
       
    19     <div id="search-help">
       
    20         <p>Search powered by <a href="http://hyperestraier.sourceforge.net/">Hyper Estraier</a>:</p>
    12 
    21 
    13 <p>Search for something.</p>
    22         <ul>
       
    23             <li>Group words together using quotes: <tt>"united nations"</tt></li>
       
    24             <li>Searching for multiple words is AND: <tt>internet security</tt></li>
       
    25             <li>To exclude terms, use <strong>!</strong> : <tt>hacker ! cracker</tt></li>
       
    26             <li>Union (i.e. <q>or</q>) using <strong>|</strong> : <tt>proxy | firewall</tt></li>
       
    27             <li>Search is case-insensitive</li>
       
    28         </ul>
       
    29     </div>
       
    30 </div>
    14 
    31 
    15 % else :
    32 % else :
    16 <div id="title">${channel.title} :: Search '${search_query}'</div>
    33 <div id="title">${channel.title} :: Search '${search_query}'</div>
    17 
    34 
    18 % for line in lines:
    35 % for line in lines: