Unverified Commit cf795800 authored by Luc Didry's avatar Luc Didry
Browse files

Fix tt2 indentation

- 4 spaces indentation
- Indent on HTML tags AND on TT2 stuff ([% IF … %])
- Avoid HTML or TT2 oneliners like:
```
  [% IF top_menu %]…[% END %]
  <div class="displayNone"><a href="#top">Top of Page</a></div>
```
- When a tag has too many attributes to be on one line, indent the
  attributes at the same level than the first one:
```
<label class="foo"
       id="bar">
    Baz
</label>
```
parent 7164bc79
<!-- active_lists.tt2 -->
<h2 class="block"> <strong>
[% IF count %]
[%|loc(count)%] The %1 most active lists [%END%]
[% ELSE %]
[%|loc%] Active lists [%END%]
[% END %]
[% IF for %]
[%|loc(for)%] for %1 days [%END%]
[% END %]
</strong> </h2>
<h2 class="block">
<strong>
[% IF count %]
[%|loc(count)%] The %1 most active lists [%END%]
[% ELSE %]
[%|loc%] Active lists [%END%]
[% END %]
[% IF for %]
[%|loc(for)%] for %1 days [%END%]
[% END %]
</strong>
</h2>
<br />
<table class="responsive listOfItems" >
<caption>[%|loc(count)%] The %1 most active lists [%END%][%|loc(for)%] for %1 days [%END%]</caption>
<tr class="color_light">
<th id="list_name"><strong>[%|loc%]List name[%END%]</strong></th>
<th id="message"><strong>[%|loc%]Number of messages[%END%]</strong></th>
<th id="average"><strong>[%|loc%]Average by day[%END%]</strong></th>
<th id="date"><strong>[%|loc%]Creation date[%END%]</strong></th>
<th id="subject"><strong>[%|loc%]Subject[%END%]</strong></th>
</tr>
[% SET dark = '0' %]
[% FOREACH l = active_lists %]
[% IF dark == '1' %]<tr>[% SET dark = '0' %][% ELSE %]<tr class="color0">[% SET dark = '1' %][% END %]
<td headers="list_name">
<a href="[% 'info' | url_rel([l.name]) %]" ><strong>[%|obfuscate(conf.spam_protection) %][% l.name %]@[% domain %][% END %]</strong></a>
</td>
<td class="text_center" headers="message"> [% l.msg_count %] </td>
<td class="text_center" headers="average"> [% l.average %] </td>
<td headers="date"> [% l.date %] </td>
<td headers="subject"> [% l.subject %] </td>
</tr>
[% END %]
<caption>[%|loc(count)%] The %1 most active lists [%END%][%|loc(for)%] for %1 days [%END%]</caption>
<tr class="color_light">
<th id="list_name"><strong>[%|loc%]List name[%END%]</strong></th>
<th id="message"><strong>[%|loc%]Number of messages[%END%]</strong></th>
<th id="average"><strong>[%|loc%]Average by day[%END%]</strong></th>
<th id="date"><strong>[%|loc%]Creation date[%END%]</strong></th>
<th id="subject"><strong>[%|loc%]Subject[%END%]</strong></th>
</tr>
[% SET dark = '0' %]
[% FOREACH l = active_lists %]
[% IF dark == '1' %]
<tr>
[% SET dark = '0' %]
[% ELSE %]
<tr class="color0">
[% SET dark = '1' %]
[% END %]
<td headers="list_name">
<a href="[% 'info' | url_rel([l.name]) %]" ><strong>[%|obfuscate(conf.spam_protection) %][% l.name %]@[% domain %][% END %]</strong></a>
</td>
<td class="text_center" headers="message"> [% l.msg_count %] </td>
<td class="text_center" headers="average"> [% l.average %] </td>
<td headers="date"> [% l.date %] </td>
<td headers="subject"> [% l.subject %] </td>
</tr>
[% END %]
</table>
<!-- end active_lists.tt2 -->
<!-- admin.tt2 -->
<h2>[%|loc%]Casual administration[%END%]</h2>
<ul>
[% IF is_listmaster || is_owner %]
<li><strong><a href="[% 'edit_list_request' | url_rel([list]) %]">[%|loc%]Edit List Config:[%END%]</a></strong> [%|loc%]It must be used with care. It allows you to modify some of the list parameters. The list of parameters you can modify depends on your privilege.[%END%]</li>
[% END %]
[% IF is_listmaster || is_owner || may_del %]
<li><strong><a href="[% 'review' | url_rel([list]) %]">[%|loc%]Manage Subscribers:[%END%]</a></strong> [%|loc%]Allows you to add or delete list members, moderate subscriptions, and so on.[%END%]</li>
[% IF conf.use_blacklist != 'none' %]
<li><strong><a href="[% 'blacklist' | url_rel([list]) %]" >[%|loc%]Blacklist:[%END%]</a></strong> [%|loc%]Handles the set of black-listed mail addresses for this list.[%END%]</li>
[% END %]
[% END %]
[% IF is_listmaster || is_owner %]
[% IF is_archived %]
<li><strong><a href="[% 'arc_manage' | url_rel([list]) %]">[%|loc%]Manage archives:[%END%]</a></strong> [%|loc%]Allows you to download and delete list archives.[%END%]</li>
[% END %]
[% IF is_listmaster || is_owner || ( is_editor && may_review ) %]
<li><strong><a href="[% 'reviewbouncing' | url_rel([list]) %]">[%|loc%]Bounces:[%END%]</a></strong> [%|loc%]Manage non-delivery reports (also called bounces).[%END%]</li>
[% END %]
[% IF is_priv || is_listmaster %]
<li><strong><a href="[% 'viewlogs' | url_rel([list]) %]">[%|loc%]Logs:[%END%]</a></strong> [%|loc%]A tool for exploring the list logs.[%END%]</li>
[% END %]
[% END %]
[% IF is_listmaster || is_owner %]
<li>
<strong><a href="[% 'edit_list_request' | url_rel([list]) %]">[%|loc%]Edit List Config:[%END%]</a></strong>
[%|loc%]It must be used with care. It allows you to modify some of the list parameters. The list of parameters you can modify depends on your privilege.[%END%]
</li>
[% END %]
[% IF is_listmaster || is_owner || may_del %]
<li>
<strong><a href="[% 'review' | url_rel([list]) %]">[%|loc%]Manage Subscribers:[%END%]</a></strong>
[%|loc%]Allows you to add or delete list members, moderate subscriptions, and so on.[%END%]
</li>
[% IF conf.use_blacklist != 'none' %]
<li>
<strong><a href="[% 'blacklist' | url_rel([list]) %]" >[%|loc%]Blacklist:[%END%]</a></strong>
[%|loc%]Handles the set of black-listed mail addresses for this list.[%END%]
</li>
[% END %]
[% END %]
[% IF is_listmaster || is_owner %]
[% IF is_archived %]
<li>
<strong><a href="[% 'arc_manage' | url_rel([list]) %]">[%|loc%]Manage archives:[%END%]</a></strong>
[%|loc%]Allows you to download and delete list archives.[%END%]
</li>
[% END %]
[% IF is_listmaster || is_owner || ( is_editor && may_review ) %]
<li>
<strong><a href="[% 'reviewbouncing' | url_rel([list]) %]">[%|loc%]Bounces:[%END%]</a></strong>
[%|loc%]Manage non-delivery reports (also called bounces).[%END%]
</li>
[% END %]
[% IF is_priv || is_listmaster %]
<li>
<strong><a href="[% 'viewlogs' | url_rel([list]) %]">[%|loc%]Logs:[%END%]</a></strong>
[%|loc%]A tool for exploring the list logs.[%END%]
</li>
[% END %]
[% END %]
</ul>
[% IF is_listmaster || is_owner || is_privileged_owner %]
<h2>[%|loc%]Drastic operations[%END%]</h2>
<h2>[%|loc%]Drastic operations[%END%]</h2>
[% IF is_privileged_owner %]
[% IF list_conf.status == 'closed' ~%]
<form name="manage_list_status" action="[% path_cgi %]" method="post">
<div>
<input class="MainMenuLinks" type="submit" name="action_open_list"
value="[%|loc%]Restore List[%END%]" />
[%|loc%]This list is currently closed. Clicking this button will make it active again.[%END%]
<input type="hidden" name="previous_action" value="[% action %]"/>
<input type="hidden" name="list" value="[% list %]"/>
</div>
</form>
[%~ ELSIF is_included ~%]
<p>[%|loc%]Closing or renaming this list is impossible, because it is included by other mailing list(s).[%END%]
<br /><a class="button" href="[% 'including_lists' | url_rel([list]) %]">
[%|loc(list)%]View lists including %1[%END%]
</a></p>
[%~ ELSE ~%]
<form name="manage_list_status" action="[% path_cgi %]" method="post">
<div>
<input class="MainMenuLinks" type="submit" name="action_close_list"
value="[%|loc%]Remove List[%END%]" />
[%|loc%]Completely removes the current list. Listmaster privileges are required to restore a list once it has been removed.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
</div>
</form>
[%~ END %]
[% IF may_create_list && ! is_included ~%]
<form name="manage_list_name" action="[% path_cgi %]" method="post">
<fieldset>
<input class="MainMenuLinks" type="submit" name="action_rename_list_request" value="[%|loc%]Rename List[%END%]"/> [%|loc%]Allows you to change this list's name. Everything related to the list will be renamed, including the mail aliases and the web archives.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
</fieldset>
</form>
[%~ END ~%]
[% END %]
[% IF is_privileged_owner %]
[% IF list_conf.status == 'closed' ~%]
<form name="manage_list_status" action="[% path_cgi %]" method="post">
<div>
<input class="MainMenuLinks" type="submit" name="action_open_list" value="[%|loc%]Restore List[%END%]" />
[%|loc%]This list is currently closed. Clicking this button will make it active again.[%END%]
<input type="hidden" name="previous_action" value="[% action %]"/>
<input type="hidden" name="list" value="[% list %]"/>
</div>
</form>
[%~ ELSIF is_included ~%]
<p>
[%|loc%]Closing or renaming this list is impossible, because it is included by other mailing list(s).[%END%]
<br />
<a class="button" href="[% 'including_lists' | url_rel([list]) %]">
[%|loc(list)%]View lists including %1[%END%]
</a>
</p>
[%~ ELSE ~%]
<form name="manage_list_status" action="[% path_cgi %]" method="post">
<div>
<input class="MainMenuLinks" type="submit" name="action_close_list" value="[%|loc%]Remove List[%END%]" />
[%|loc%]Completely removes the current list. Listmaster privileges are required to restore a list once it has been removed.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
</div>
</form>
[%~ END %]
[% IF may_create_list && ! is_included ~%]
<form name="manage_list_name" action="[% path_cgi %]" method="post">
<fieldset>
<input class="MainMenuLinks" type="submit" name="action_rename_list_request" value="[%|loc%]Rename List[%END%]"/>
[%|loc%]Allows you to change this list's name. Everything related to the list will be renamed, including the mail aliases and the web archives.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
</fieldset>
</form>
[%~ END ~%]
[% END %]
[% IF is_shared_allowed && (is_listmaster || is_owner) %]
<form name="manage_shared_status" action="[% path_cgi %]" method="post">
<div>
[% IF shared == 'none' %]
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Create Shared[%END%]"/> [%|loc%]Initializes the shared document web space.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="create"/>
[% ELSIF shared == 'exist' %]
<input class="MainMenuLinks" type="submit" name="action_d_admin"
value="[%|loc%]Delete Shared[%END%]" />
[%|loc%]Closes the shared document web space. It can be restored using "Restore shared" button.[%END%]</li>
<input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="delete"/>
[% ELSIF shared == 'deleted' %]
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Restore Shared[%END%]"/> [%|loc%]Restores the previously closed shared document web space.[%END%]</li>
<input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="restore"/>
[% END %]
</div>
</form>
[% END %]
[% IF is_shared_allowed && (is_listmaster || is_owner) %]
<form name="manage_shared_status" action="[% path_cgi %]" method="post">
<div>
[% IF shared == 'none' %]
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Create Shared[%END%]"/>
[%|loc%]Initializes the shared document web space.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="create"/>
[% ELSIF shared == 'exist' %]
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Delete Shared[%END%]" />
[%|loc%]Closes the shared document web space. It can be restored using "Restore shared" button.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="delete"/>
[% ELSIF shared == 'deleted' %]
<input class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Restore Shared[%END%]"/>
[%|loc%]Restores the previously closed shared document web space.[%END%]
<input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="restore"/>
[% END %]
</div>
</form>
[% END %]
[% END %]
<!-- end admin.tt2 -->
<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[% PROCESS "${action}.tt2" IF action %]
[% PROCESS "${action}.tt2" IF action %]
<!-- arc.tt2 -->
<div class="block">
<h2>[%|loc%]List archive[%END%]
<a class="openInNewWindow"
href="[% 'nomenu/help' | url_rel(['arc.html']) %]" target="wws_help">
<i class="fa fa-info-circle" title="[%|loc%]Help[%END%]"
aria-hidden="true"></i>
</a>
</h2>
<!-- part generated by mhonarc -->
[% IF html_content ~%]
[% TRY ~%]
[% html_content | eval | obfuscate(listconf.web_archive_spam_protection) %]
[%~ CATCH ~%]
<!-- [% error | html %] -->
[%~ END ~%]
[% END %]
<!-- end of part generated by mhonarc -->
<h2>[%|loc%]List archive[%END%]
<a class="openInNewWindow" href="[% 'nomenu/help' | url_rel(['arc.html']) %]" target="wws_help">
<i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" aria-hidden="true"></i>
</a>
</h2>
<!-- part generated by mhonarc -->
[% IF html_content ~%]
[% TRY ~%]
[% html_content | eval | obfuscate(listconf.web_archive_spam_protection) %]
[%~ CATCH ~%]
<!-- [% error | html %] -->
[%~ END ~%]
[% END %]
<!-- end of part generated by mhonarc -->
</div>
<!-- end arc.tt2 -->
......@@ -2,33 +2,30 @@
<div class="block">
<h2>[%|loc%]Archive Management[%END%]
<a class="openInNewWindow"
href="[% 'nomenu/help' | url_rel(['admin-archives.html']) %]" target="wws_help">
<i class="fa fa-info-circle" title="[%|loc%]Help[%END%]"
aria-hidden="true"></i>
</a>
<a class="openInNewWindow" href="[% 'nomenu/help' | url_rel(['admin-archives.html']) %]" target="wws_help">
<i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" aria-hidden="true"></i>
</a>
</h2>
<p>
[%|loc%]Select the Archive months you want to delete or download (zip format):[%END%]
[%|loc%]Select the Archive months you want to delete or download (zip format):[%END%]
</p>
<form class="noborder" name="zip_form" method="post" action="[% path_cgi %]">
<div>
<label for="directories">[%|loc%]Archive Selection:[%END%]</label><br />
<select name="directories" id="directories" multiple="multiple" size="4">
[% FOREACH u = yyyymm ~%]
<option value="[% u %]">[% u %]</option>
[% END %]
</select>
</div>
<input name="list" type="hidden" value="[% list %]" />
<div>
<input class="MainMenuLinks" type="submit" name="action_arc_download"
value="[%|loc%]Download .zip archive[%END%]" />
<input class="MainMenuLinks" type="submit" name="action_arc_delete"
value="[%|loc%]Delete Selected Month(s)[%END%]" />
</div>
<div>
<label for="directories">[%|loc%]Archive Selection:[%END%]</label>
<br />
<select name="directories" id="directories" multiple="multiple" size="4">
[% FOREACH u = yyyymm ~%]
<option value="[% u %]">[% u %]</option>
[% END %]
</select>
</div>
<input name="list" type="hidden" value="[% list %]" />
<div>
<input class="MainMenuLinks" type="submit" name="action_arc_download" value="[%|loc%]Download .zip archive[%END%]" />
<input class="MainMenuLinks" type="submit" name="action_arc_delete" value="[%|loc%]Delete Selected Month(s)[%END%]" />
</div>
</form>
</div>
......
<!-- arcsearch.tt2 -->
<div class="block">
<h2>[%|loc%]Result of your search in the archive[%END%]
<a href="[% 'arc' | url_rel([list,archive_name]) %]"><span class="color_dark">[% list %]:</span></a> </h2>
<p>[%|loc%]Search field:[%END%]
[% FOREACH u = directories %]
<a href="[% 'arc' | url_rel([list,u]) %]"><span class="color_dark">[% u %]</font></a> -
[% END %]
</p>
<p>
[%|loc(key_word)%]Parameters of these search make on <strong> &quot;%1&quot;</strong>[%END%]<br>
<em>
[% IF how == 'phrase' %]
[%|loc%](This sentence,[%END%]
[% ELSIF how == 'any' %]
[%|loc%](All of these words,[%END%]
[% ELSE %]
[%|loc%](Each of these words,[%END%]
[% END %]
[% IF case == 'off' %]
[%|loc%]case insensitive[%END%]
[% ELSE %]
[%|loc%]case sensitive[%END%]
[% END %]
[% IF match == 'partial' %]
[%|loc%]and checking on part of word)[%END%]
[% ELSE %]
[%|loc%]and checking on entire word)[%END%]
[% END %]
</em>
</p>
<hr />
[% IF age == 'new' %]
<p><strong>[%|loc%]Newest messages first[%END%]</strong></p>
[% ELSE %]
<p><strong>[%|loc%]Oldest messages first[%END%]</strong></p>
[% END %]
<dl>
[% FOREACH u = res %]
<dt><a href="[% u.file %]">
[%~ FOREACH r = u.rich.subj ~%]
[% IF r.format == 'b' %]<b>[% r.text %]</b>
[%~ ELSIF r.format == 'br' %]<br />
[%~ ELSE%][% r.text %][%END ~%]
[%END ~%]
</a> -- <em>
[%~ FOREACH r = u.rich.date ~%]
[% IF r.format == 'b' %]<b>[% r.text %]</b>
[%~ ELSIF r.format == 'br' %]<br />
[%~ ELSE%][% r.text %][%END ~%]
[%END ~%]
</em></dt><dd>
[%~ FOREACH r = u.rich.from ~%]
[% IF r.format == 'b' %]<b>[% r.text %]</b>
[%~ ELSIF r.format == 'br' %]<br />
[%~ ELSE%][% r.text %][%END ~%]
[%END ~%]
<pre>
[%~ FOREACH r = u.rich.body_string ~%]
[% IF r.format == 'b' %]<b>[% r.text %]</b>
[%~ ELSIF r.format == 'br' %]<br />
[%~ ELSE%][% r.text %][%END ~%]
[%END ~%]
</pre></dd>
[% END %]
</dl>
<p>
<dl>
[% IF body %]
<dd>[%|loc(body_count)%]%1 hits on message Body[%END%]<br /></dd>
[% END %]
[% IF subj %]
<dd>[%|loc(subj_count)%]%1 hits on message Subject field[%END%]<br /></dd>
[% END %]
[% IF from %]
<dd>[%|loc(from_count)%] %1 hits on message From field[%END%]<br /></dd>
[% END %]
[% IF date %]
<dd>[%|loc(date_count)%]%1 hits on message Date field[%END%]<br /></dd>
[% END %]
</dl>
<form method="post" action="[% path_cgi %]" class="noborder">
<fieldset>
<input type="hidden" name="list" value="[% list %]" />
<input type="hidden" name="archive_name" value="[% archive_name %]" />
<input type="hidden" name="key_word" value="[% key_word %]" />
<input type="hidden" name="how" value="[% how %]" />
<input type="hidden" name="age" value="[% age %]" />
<input type="hidden" name="case" value="[% case %]" />
<input type="hidden" name="match" value="[% match %]" />
<input type="hidden" name="limit" value="[% limit %]" />
<input type="hidden" name="body_count" value="[% body_count %]" />
<input type="hidden" name="date_count" value="[% date_count %]" />
<input type="hidden" name="from_count" value="[% from_count %]" />
<input type="hidden" name="subj_count" value="[% subj_count %]" />
<input type="hidden" name="previous" value="[% searched %]" />
[% IF body %]
<input type="hidden" name="body" value="[% body %]" />
[% END %]
[% IF subj %]
<input type="hidden" name="subj" value="[% subj %]" />
[% END %]
[% IF from %]
<input type="hidden" name="from" value="[% from %]" />
[% END %]
[% IF date %]
<input type="hidden" name="date" value="[% date %]" />
[% END %]
[% FOREACH u = directories %]
<input type="hidden" name="directories" value="[% u %]" />
[% END %]
[% IF continue %]
<input class="MainMenuLinks" name="action_arcsearch" type="submit" value="[%|loc%]Continue search[%END%]" />
[% END %]
<p class="text_center" >
<input style="padding:0.1em 5em!important;" class="MainMenuLinks" name="action_arcsearch_form" type="submit" value="[%|loc%]New search[%END%]" />
</p>
</fieldset>
</form>
<hr />
<a class="actionMenuLinks" href="[% 'arc' | url_rel([list,archive_name]) %]">[%|loc(archive_name)%]Return to archive %1[%END%]
</a><br />
<h2>
[%|loc%]Result of your search in the archive[%END%]
<a href="[% 'arc' | url_rel([list,archive_name]) %]">
<span class="color_dark">[% list %]:</span>
</a>
</h2>
<p>
[%|loc%]Search field:[%END%]
[% FOREACH u = directories %]
<a href="[% 'arc' | url_rel([list,u]) %]"><span class="color_dark">[% u %]</font></a> -
[% END %]
</p>
<p>
[%|loc(key_word)%]Parameters of these search make on <strong> &quot;%1&quot;</strong>[%END%]
<br/>
<em>
[% IF how == 'phrase' %]
[%|loc%](This sentence,[%END%]
[% ELSIF how == 'any' %]
[%|loc%](All of these words,[%END%]
[% ELSE %]
[%|loc%](Each of these words,[%END%]
[% END %]
[% IF case == 'off' %]
[%|loc%]case insensitive[%END%]
[% ELSE %]
[%|loc%]case sensitive[%END%]
[% END %]
[% IF match == 'partial' %]
[%|loc%]and checking on part of word)[%END%]
[% ELSE %]
[%|loc%]and checking on entire word)[%END%]
[% END %]
</em>
</p>
<hr />
[% IF age == 'new' %]
<p><strong>[%|loc%]Newest messages first[%END%]</strong></p>
[% ELSE %]
<p><strong>[%|loc%]Oldest messages first[%END%]</strong></p>
[% END %]
<dl>
[% FOREACH u = res %]
<dt>
<a href="[% u.file %]">
[%~ FOREACH r = u.rich.subj ~%]
[% IF r.format == 'b' %]<b>[% r.text %]</b>
[%~ ELSIF r.format == 'br' %]<br />
[%~ ELSE%][% r.text %][%END ~%]
[%END ~%]
</a>
--
<em>
[%~ FOREACH r = u.rich.date ~%]
[% IF r.format == 'b' %]<b>[% r.text %]</b>
[%~ ELSIF r.format == 'br' %]<br />
[%~ ELSE%][% r.text %][%END ~%]
[%END ~%]
</em>
</dt>
<dd>
[%~ FOREACH r = u.rich.from ~%]
[% IF r.format == 'b' %]<b>[% r.text %]</b>
[%~ ELSIF r.format == 'br' %]<br />
[%~ ELSE%][% r.text %][%END ~%]
[%END ~%]
<pre>
[%~ FOREACH r = u.rich.body_string ~%]
[% IF r.format == 'b' %]<b>[% r.text %]</b>
[%~ ELSIF r.format == 'br' %]<br />
[%~ ELSE%][% r.text %][%END ~%]
[%END ~%]
</pre>
</dd>
[% END %]
</dl>
<p>
<dl>
[% IF body %]
<dd>[%|loc(body_count)%]%1 hits on message Body[%END%]<br /></dd>
[% END %]
[% IF subj %]
<dd>[%|loc(subj_count)%]%1 hits on message Subject field[%END%]<br /></dd>
[% END %]
[% IF from %]
<dd>[%|loc(from_count)%] %1 hits on message From field[%END%]<br /></dd>
[% END %]
[% IF date %]
<dd>[%|loc(date_count)%]%1 hits on message Date field[%END%]<br /></dd>
[% END %]
</dl>
<form method="post" action="[% path_cgi %]" class="noborder">
<fieldset>
<input type="hidden" name="list" value="[% list %]" />
<input type="hidden" name="archive_name" value="[% archive_name %]" />
<input type="hidden" name="key_word" value="[% key_word %]" />
<input type="hidden" name="how" value="[% how %]" />
<input type="hidden" name="age" value="[% age %]" />
<input type="hidden" name="case" value="[% case %]" />
<input type="hidden" name="match" value="[% match %]" />
<input type="hidden" name="limit" value="[% limit %]" />
<input type="hidden" name="body_count" value="[% body_count %]" />
<input type="hidden" name="date_count" value="[% date_count %]" />
<input type="hidden" name="from_count" value="[% from_count %]" />
<input type="hidden" name="subj_count" value="[% subj_count %]" />
<input type="hidden" name="previous" value="[% searched %]" />
[% IF body %]
<input type="hidden" name="body" value="[% body %]" />
[% END %]
[% IF subj %]
<input type="hidden" name="subj" value="[% subj %]" />
[% END %]
[% IF from %]
<input type="hidden" name="from" value="[% from %]" />
[% END %]