/[mws]/trunk/templates/master.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/master.html

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

revision 13 by dpavlin, Thu May 6 16:53:40 2004 UTC revision 14 by dpavlin, Thu May 6 19:46:58 2004 UTC
# Line 4  Line 4 
4  </head>  </head>
5    
6  [% MACRO search(fld,text,link_text) BLOCK; %]  [% MACRO search(fld,text,link_text) BLOCK; %]
7  <a href="?search=[% fld %]:[% text %]">[% IF link_text ; link_text ; ELSE ; text ; END %]</a>  <a href="?search=[% fld %]:[% IF fld == "subject" %][% FILTER subject_search ; text ; END %][% ELSE ; text ; END %]">[% IF link_text ; link_text ; ELSE ; text ; END %]</a>
8  [% END %]  [% END %]
9    
10  [% MACRO option(var, value, text) BLOCK %]  [% MACRO option(var, value, text) BLOCK %]
# Line 22  Line 22 
22  [% MACRO to(message) BLOCK %]  [% MACRO to(message) BLOCK %]
23  <span class="to">  <span class="to">
24   [% FOREACH f IN message.to %]   [% FOREACH f IN message.to %]
25    [% IF !loop.fist %]To [% END %]    [% IF loop.fist %]To [% END %]
26    [% search('to_phrase',f) %][% IF !loop.last %], [% END %]    [% search('to_phrase',f) %][% IF !loop.last %], [% END %]
27   [% END %]   [% END %]
28   [% FOREACH f IN message.cc %]   [% FOREACH f IN message.cc %]
29    [% IF !loop.fist %]Cc [% END %]    [% IF loop.fist %]Cc [% END %]
30    [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]    [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]
31   [% END %]   [% END %]
32   [% FOREACH f IN message.bcc %]   [% FOREACH f IN message.bcc %]
33    [% IF !loop.fist %]Bcc [% END %]    [% IF loop.fist %]Bcc [% END %]
34    [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]    [% search('bcc_phrase',f) %][% IF !loop.last %], [% END %]
35   [% END %]   [% END %]
36  </span>  </span>
37  [% END %]  [% END %]
# Line 49  Line 49 
49  <form>  <form>
50  Search  Search
51  <select name="search_fld">  <select name="search_fld">
52    [% option("search_fld","message","anywhere") %]
53  [% option("search_fld","subject","message subject") %]  [% option("search_fld","subject","message subject") %]
54  [% option("search_fld","body","message text") %]  [% option("search_fld","body","message text") %]
55  [% option("search_fld","from_phrase","sender name") %]  [% option("search_fld","from_phrase","sender name") %]

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

  ViewVC Help
Powered by ViewVC 1.1.26