/[mws]/trunk/templates/results.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/templates/results.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by dpavlin, Wed May 5 13:42:27 2004 UTC revision 25 by dpavlin, Sat May 8 16:06:58 2004 UTC
# Line 1  Line 1 
1  Search results for <tt>[% query %]</tt>  <span class="results">
2  produced [% results.size %] results...  [% IF results.size < total_hits %]<abbr title="showing">[% results.size %]</abbr>/[% END %][% total_hits %]
3    [% IF total_hits > 1 %]messages[% ELSE %]message[% END %]
4    for
5     <span class="search_query">
6     [% param.search %]
7     </span>
8    </span>
9    
10  [% MACRO message(subject, from, body) BLOCK; %]  [% IF date_limit %]
11  <h1 style="color: #808080">[% subject %]</h1>  <span class="date_limit">
12  <h2>  Date limit:
13   [% FOREACH f IN from %]  <a href="/[% url_search %]">[% date_limit %]</a>
14    [% search('from_phrase',f) %][% IF !loop.last %],[% END %]  </span>
  [% END %]  
 </h2>  
 <pre>[% FILTER body5 %][% body %][% END %]</pre>  
15  [% END %]  [% END %]
16    
17    <span class="sort">
18    Sort by: [% sort_bar(param,"","&nbsp;|&nbsp;","") %]
19    </span>
20    
21  [% MACRO search(fld,text) BLOCK; %]  [% FOR msg = results %]
22  <a href="?search=[% fld %]:[% text %]">[% text %]</a>  <hr>
23    <span class="search">[% search('subject',msg.subject,param.sort_by,'[?]') %]</span>
24    <span class="subject"><a href="[% url_show_id(msg.id) %]">[% msg.subject %]</a></span>
25    <br>
26    [% from(msg) %]
27    [% date(msg) %]
28    <br>[% to(msg) %]
29    <pre>[% FILTER html %][% FILTER body5 ; msg.body ; END %][% END %]</pre>
30  [% END %]  [% END %]
31    
32    [% IF total_hits - results.size > 0 %]
33  [% FOR result = results %]  <hr>
34   <hr>  There are [% total_hits - results.size %] more hits.
  [% message(result.subject, result.from, result.body) %]  
35  [% END %]  [% END %]

Legend:
Removed from v.6  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC 1.1.26