/[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 13 by dpavlin, Thu May 6 16:53:40 2004 UTC
# Line 1  Line 1 
1  Search results for <tt>[% query %]</tt>  Found <b>[% results.size %]</b> results for query <tt>[% param.search %]</tt>.
 produced [% results.size %] results...  
2    
3  [% MACRO message(subject, from, body) BLOCK; %]  [% FOR msg = results %]
 <h1 style="color: #808080">[% subject %]</h1>  
 <h2>  
  [% FOREACH f IN from %]  
   [% search('from_phrase',f) %][% IF !loop.last %],[% END %]  
  [% END %]  
 </h2>  
 <pre>[% FILTER body5 %][% body %][% END %]</pre>  
 [% END %]  
   
   
 [% MACRO search(fld,text) BLOCK; %]  
 <a href="?search=[% fld %]:[% text %]">[% text %]</a>  
 [% END %]  
   
   
 [% FOR result = results %]  
4   <hr>   <hr>
5   [% message(result.subject, result.from, result.body) %]  <span class="subject"><a href="?show_id=[% msg.id %]">[% msg.subject %]</a></span>
6    <br>
7    [% from(msg) %]
8    [% date(msg) %]
9    <br>[% to(msg) %]
10    <br><tt>[% FILTER html %]
11    [% FILTER body5 ; msg.body ; END %]
12    [% END %]
13    </tt>
14  [% END %]  [% END %]

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

  ViewVC Help
Powered by ViewVC 1.1.26