/[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

Annotation of /trunk/templates/master.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14 - (hide annotations)
Thu May 6 19:46:58 2004 UTC (20 years ago) by dpavlin
File MIME type: text/html
File size: 2323 byte(s)
Make mbox2swish universal for all indexer (moving index-specific
thinks in own .pm) -- after MWS_plucene.pm update it should work with it.
Use Text::AutoFormat to re-format messages wider than wrap_margin
(from global.conf). Hard-coded ISO-8859-2 encoding now works correctly,
Subject searches now remove common subject prefixes, template updates.

1 dpavlin 6 <html>
2     <head>
3 dpavlin 7 <title>[% IF title %][% title %] -- [% END %]Mail::Box Web Search</title>
4     </head>
5 dpavlin 6
6 dpavlin 11 [% MACRO search(fld,text,link_text) BLOCK; %]
7 dpavlin 14 <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 dpavlin 7 [% END %]
9    
10 dpavlin 12 [% MACRO option(var, value, text) BLOCK %]
11     <option value="[% value %]"[% IF value == param.search_fld %] selected[% END %]>[% text %]</option>
12     [% END %]
13    
14 dpavlin 13 [% MACRO from(message) BLOCK %]
15     <span class="from">
16     [% FOREACH f IN message.from %]
17     [% search('from_phrase',f) %][% IF !loop.last %],[% END %]
18     [% END %]
19     </span>
20     [% END %]
21    
22     [% MACRO to(message) BLOCK %]
23     <span class="to">
24     [% FOREACH f IN message.to %]
25 dpavlin 14 [% IF loop.fist %]To [% END %]
26 dpavlin 13 [% search('to_phrase',f) %][% IF !loop.last %], [% END %]
27     [% END %]
28     [% FOREACH f IN message.cc %]
29 dpavlin 14 [% IF loop.fist %]Cc [% END %]
30 dpavlin 13 [% search('cc_phrase',f) %][% IF !loop.last %], [% END %]
31     [% END %]
32     [% FOREACH f IN message.bcc %]
33 dpavlin 14 [% IF loop.fist %]Bcc [% END %]
34     [% search('bcc_phrase',f) %][% IF !loop.last %], [% END %]
35 dpavlin 13 [% END %]
36     </span>
37     [% END %]
38    
39     [% MACRO date(msg) BLOCK %]
40     <span class="date">[% msg.date %]</span>
41     [% END %]
42    
43 dpavlin 6 <body>
44    
45 dpavlin 12 <table border="0" width="100%">
46     <tr>
47     <td colspan="2">
48    
49     <form>
50     Search
51     <select name="search_fld">
52 dpavlin 14 [% option("search_fld","message","anywhere") %]
53 dpavlin 12 [% option("search_fld","subject","message subject") %]
54     [% option("search_fld","body","message text") %]
55     [% option("search_fld","from_phrase","sender name") %]
56     [% option("search_fld","from_address","sender address") %]
57 dpavlin 13 [% option("search_fld","to_phrase","recipient name") %]
58     [% option("search_fld","to_address","recipient address") %]
59 dpavlin 12 </select>
60     <input type="text" name="search_val" size=20 value="[% param.search_val %]">
61     </select>
62     </form>
63    
64     </td>
65     </tr>
66    
67     <tr>
68 dpavlin 13 <td valign="top" width="90%">
69 dpavlin 12
70 dpavlin 7 [% IF results %]
71     [% INCLUDE results.html %]
72     [% ELSIF message %]
73     [% INCLUDE message.html %]
74     [% END %]
75 dpavlin 6
76 dpavlin 12 </td>
77     <td valign="top">
78    
79     [% USE cal = Calendar.Simple %]
80    
81     <table border="0">
82     [% FOREACH row = cal.rows %]
83     <tr>
84     [% FOREACH col = row %]
85     <td align="right">[% col || '&nbsp;' %]</td>
86     [% END %]
87     </tr>
88     [% END %]
89     </table>
90    
91     <br>
92     Thread
93    
94     <br>
95     Recipients
96    
97     <br>
98     Contributors
99    
100     <br>
101     Lists
102    
103     <br>
104     Links
105    
106     <br>
107    
108    
109     </td>
110    
111     </tr>
112    
113    
114     </table>
115    
116 dpavlin 6 </body>

  ViewVC Help
Powered by ViewVC 1.1.26