/[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 32 by dpavlin, Sun May 9 09:48:38 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    [% IF param.search %]
5    for
6     <span class="search_query">
7     [% param.search %]
8     </span>
9    [% END %]
10    </span>
11    
12  [% MACRO message(subject, from, body) BLOCK; %]  [% IF date_limit %]
13  <h1 style="color: #808080">[% subject %]</h1>  <span class="date_limit">
14  <h2>  Date limit:
15   [% FOREACH f IN from %]  <a href="/[% url_search(param.search) %]">[% date_limit %]</a>
16    [% search('from_phrase',f) %][% IF !loop.last %],[% END %]  </span>
  [% END %]  
 </h2>  
 <pre>[% FILTER body5 %][% body %][% END %]</pre>  
17  [% END %]  [% END %]
18    
19    <span class="sort">
20    Sort by: [% sort_bar(param,"","&nbsp;|&nbsp;","") %]
21    </span>
22    
23  [% MACRO search(fld,text) BLOCK; %]  [% FOR msg = results %]
24  <a href="?search=[% fld %]:[% text %]">[% text %]</a>  <div class="headers">
25    <span class="search">[% search('subject',msg.subject,param.sort_by,'[?]') %]</span>
26    <span class="subject"><a href="[% url_show_id(msg.id) %]">[% msg.subject %]</a></span>
27    <br>
28    [% from(msg) %]
29    [% date(msg) %]
30    <br>[% to(msg) %]
31    </div>
32    <div class="message"><pre>[% FILTER body5 ; msg.body ; END %]</pre>
33    </div>
34  [% END %]  [% END %]
35    
36    [% IF total_hits - results.size > 0 %]
37  [% FOR result = results %]  <span class="notice">
38   <hr>  There are [% total_hits - results.size %] more hits.
39   [% message(result.subject, result.from, result.body) %]  </span>
40  [% END %]  [% END %]

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

  ViewVC Help
Powered by ViewVC 1.1.26