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

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

  ViewVC Help
Powered by ViewVC 1.1.26