Permalink
Browse files

WIP — Fix tt2 indentation

  • Loading branch information...
ldidry committed Jan 11, 2019
1 parent edda816 commit 426ab2bb75281e52dd56f8537e8e22dc39db2b45
@@ -1,44 +1,48 @@
<!-- active_lists.tt2 --> <!-- active_lists.tt2 -->


<h2 class="block"> <strong> <h2 class="block">
[% IF count %] <strong>
[%|loc(count)%] The %1 most active lists [%END%] [% IF count %]
[% ELSE %] [%|loc(count)%] The %1 most active lists [%END%]
[%|loc%] Active lists [%END%] [% ELSE %]
[% END %] [%|loc%] Active lists [%END%]

[% END %]
[% IF for %]
[%|loc(for)%] for %1 days [%END%] [% IF for %]
[% END %] [%|loc(for)%] for %1 days [%END%]
</strong> </h2> [% END %]
</strong>
</h2>


<br /> <br />


<table class="responsive listOfItems" > <table class="responsive listOfItems" >
<caption>[%|loc(count)%] The %1 most active lists [%END%][%|loc(for)%] for %1 days [%END%]</caption> <caption>[%|loc(count)%] The %1 most active lists [%END%][%|loc(for)%] for %1 days [%END%]</caption>
<tr class="color_light"> <tr class="color_light">
<th id="list_name"><strong>[%|loc%]List name[%END%]</strong></th> <th id="list_name"><strong>[%|loc%]List name[%END%]</strong></th>
<th id="message"><strong>[%|loc%]Number of messages[%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="average"><strong>[%|loc%]Average by day[%END%]</strong></th>
<th id="date"><strong>[%|loc%]Creation date[%END%]</strong></th> <th id="date"><strong>[%|loc%]Creation date[%END%]</strong></th>
<th id="subject"><strong>[%|loc%]Subject[%END%]</strong></th> <th id="subject"><strong>[%|loc%]Subject[%END%]</strong></th>
</tr> </tr>


[% SET dark = '0' %] [% SET dark = '0' %]
[% FOREACH l = active_lists %] [% FOREACH l = active_lists %]
[% IF dark == '1' %]<tr>[% SET dark = '0' %][% ELSE %]<tr class="color0">[% SET dark = '1' %][% END %] <tr class="color[% dark %]">

<td headers="list_name">
<td headers="list_name"> <a href="[% 'info' | url_rel([l.name]) %]" ><strong>[%|obfuscate(conf.spam_protection) %][% l.name %]@[% domain %][% END %]</strong></a>
<a href="[% 'info' | url_rel([l.name]) %]" ><strong>[%|obfuscate(conf.spam_protection) %][% l.name %]@[% domain %][% END %]</strong></a> </td>
</td> <td class="text_center" headers="message"> [% l.msg_count %] </td>
<td class="text_center" headers="message"> [% l.msg_count %] </td> <td class="text_center" headers="average"> [% l.average %] </td>
<td class="text_center" headers="average"> [% l.average %] </td> <td headers="date"> [% l.date %] </td>
<td headers="date"> [% l.date %] </td> <td headers="subject"> [% l.subject %] </td>
<td headers="subject"> [% l.subject %] </td> </tr>
</tr> [% IF dark == '1' %]

[% SET dark = '0' %]
[% END %] [% ELSE %]

[% SET dark = '1' %]
[% END %]
[% END %]
</table> </table>


<!-- end active_lists.tt2 --> <!-- end active_lists.tt2 -->
@@ -1,87 +1,108 @@
<!-- admin.tt2 --> <!-- admin.tt2 -->
<h2>[%|loc%]Casual administration[%END%]</h2> <h2>[%|loc%]Casual administration[%END%]</h2>
<ul> <ul>
[% IF is_listmaster || is_owner %] [% 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> <li>
[% END %] <strong><a href="[% 'edit_list_request' | url_rel([list]) %]">[%|loc%]Edit List Config:[%END%]</a></strong>
[% IF is_listmaster || is_owner || may_del %] [%|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><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> </li>
[% IF conf.use_blacklist != 'none' %] [% END %]
<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> [% IF is_listmaster || is_owner || may_del %]
[% END %] <li>
[% END %] <strong><a href="[% 'review' | url_rel([list]) %]">[%|loc%]Manage Subscribers:[%END%]</a></strong>
[% IF is_listmaster || is_owner %] [%|loc%]Allows you to add or delete list members, moderate subscriptions, and so on.[%END%]
[% IF is_archived %] </li>
<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> [% IF conf.use_blacklist != 'none' %]
[% END %] <li>
[% IF is_listmaster || is_owner || ( is_editor && may_review ) %] <strong><a href="[% 'blacklist' | url_rel([list]) %]" >[%|loc%]Blacklist:[%END%]</a></strong>
<li><strong><a href="[% 'reviewbouncing' | url_rel([list]) %]">[%|loc%]Bounces:[%END%]</a></strong> [%|loc%]Manage non-delivery reports (also called bounces).[%END%]</li> [%|loc%]Handles the set of black-listed mail addresses for this list.[%END%]
[% END %] </li>
[% IF is_priv || is_listmaster %] [% END %]
<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 %]
[% END %] [% 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> </ul>


[% IF is_listmaster || is_owner || is_privileged_owner %] [% 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 is_privileged_owner %]
[% IF list_conf.status == 'closed' ~%] [% IF list_conf.status == 'closed' ~%]
<form name="manage_list_status" action="[% path_cgi %]" method="post"> <form name="manage_list_status" action="[% path_cgi %]" method="post">
<div> <div>
<input class="MainMenuLinks" type="submit" name="action_open_list" <input class="MainMenuLinks" type="submit" name="action_open_list" value="[%|loc%]Restore List[%END%]" />
value="[%|loc%]Restore List[%END%]" /> [%|loc%]This list is currently closed. Clicking this button will make it active again.[%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="previous_action" value="[% action %]"/> <input type="hidden" name="list" value="[% list %]"/>
<input type="hidden" name="list" value="[% list %]"/> </div>
</div> </form>
</form> [%~ ELSIF is_included ~%]
[%~ ELSIF is_included ~%] <p>
<p>[%|loc%]Closing or renaming this list is impossible, because it is included by other mailing list(s).[%END%] [%|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]) %]"> <br />
[%|loc(list)%]View lists including %1[%END%] <a class="button" href="[% 'including_lists' | url_rel([list]) %]">
</a></p> [%|loc(list)%]View lists including %1[%END%]
[%~ ELSE ~%] </a>
<form name="manage_list_status" action="[% path_cgi %]" method="post"> </p>
<div> [%~ ELSE ~%]
<input class="MainMenuLinks" type="submit" name="action_close_list" <form name="manage_list_status" action="[% path_cgi %]" method="post">
value="[%|loc%]Remove List[%END%]" /> <div>
[%|loc%]Completely removes the current list. Listmaster privileges are required to restore a list once it has been removed.[%END%] <input class="MainMenuLinks" type="submit" name="action_close_list" value="[%|loc%]Remove List[%END%]" />
<input type="hidden" name="list" value="[% list %]"/> [%|loc%]Completely removes the current list. Listmaster privileges are required to restore a list once it has been removed.[%END%]
</div> <input type="hidden" name="list" value="[% list %]"/>
</form> </div>
[%~ END %] </form>
[% IF may_create_list && ! is_included ~%] [%~ END %]
<form name="manage_list_name" action="[% path_cgi %]" method="post"> [% IF may_create_list && ! is_included ~%]
<fieldset> <form name="manage_list_name" action="[% path_cgi %]" method="post">
<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%] <fieldset>
<input type="hidden" name="list" value="[% list %]"/> <input class="MainMenuLinks" type="submit" name="action_rename_list_request" value="[%|loc%]Rename List[%END%]"/>
</fieldset> [%|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%]
</form> <input type="hidden" name="list" value="[% list %]"/>
[%~ END ~%] </fieldset>
[% END %] </form>
[%~ END ~%]
[% END %]


[% IF is_listmaster || is_owner %] [% IF is_listmaster || is_owner %]
<form name="manage_shared_status" action="[% path_cgi %]" method="post"> <form name="manage_shared_status" action="[% path_cgi %]" method="post">
<div> <div>
[% IF shared == 'none' %] [% 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 class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Create Shared[%END%]"/>
<input type="hidden" name="list" value="[% list %]"/> [%|loc%]Initializes the shared document web space.[%END%]
<input type="hidden" name="d_admin" value="create"/> <input type="hidden" name="list" value="[% list %]"/>
[% ELSIF shared == 'exist' %] <input type="hidden" name="d_admin" value="create"/>
<input class="MainMenuLinks" type="submit" name="action_d_admin" [% ELSIF shared == 'exist' %]
value="[%|loc%]Delete Shared[%END%]" /> <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> [%|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="list" value="[% list %]"/>
<input type="hidden" name="d_admin" value="delete"/> <input type="hidden" name="d_admin" value="delete"/>
[% ELSIF shared == 'deleted' %] [% 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 class="MainMenuLinks" type="submit" name="action_d_admin" value="[%|loc%]Restore Shared[%END%]"/>
<input type="hidden" name="list" value="[% list %]"/> [%|loc%]Restores the previously closed shared document web space.[%END%]
<input type="hidden" name="d_admin" value="restore"/> <input type="hidden" name="list" value="[% list %]"/>
[% END %] <input type="hidden" name="d_admin" value="restore"/>
</div> [% END %]
</form> </div>
[% END %] </form>
[% END %]
[% END %] [% END %]
<!-- end admin.tt2 --> <!-- end admin.tt2 -->
@@ -1,3 +1,2 @@
<?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"> <?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 %]

@@ -1,21 +1,18 @@
<!-- arc.tt2 --> <!-- arc.tt2 -->
<div class="block"> <div class="block">
<h2>[%|loc%]List archive[%END%] <h2>[%|loc%]List archive[%END%]
<a class="openInNewWindow" <a class="openInNewWindow" href="[% 'nomenu/help' | url_rel(['arc.html']) %]" target="wws_help">
href="[% 'nomenu/help' | url_rel(['arc.html']) %]" target="wws_help"> <i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" aria-hidden="true"></i>
<i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" </a>
aria-hidden="true"></i> </h2>
</a> <!-- part generated by mhonarc -->
</h2> [% IF html_content ~%]

[% TRY ~%]
<!-- part generated by mhonarc --> [% html_content | eval | obfuscate(listconf.web_archive_spam_protection) %]
[% IF html_content ~%] [%~ CATCH ~%]
[% TRY ~%] <!-- [% error | html %] -->
[% html_content | eval | obfuscate(listconf.web_archive_spam_protection) %] [%~ END ~%]
[%~ CATCH ~%] [% END %]
<!-- [% error | html %] --> <!-- end of part generated by mhonarc -->
[%~ END ~%]
[% END %]
<!-- end of part generated by mhonarc -->
</div> </div>
<!-- end arc.tt2 --> <!-- end arc.tt2 -->
@@ -2,33 +2,30 @@
<div class="block"> <div class="block">


<h2>[%|loc%]Archive Management[%END%] <h2>[%|loc%]Archive Management[%END%]
<a class="openInNewWindow" <a class="openInNewWindow" href="[% 'nomenu/help' | url_rel(['admin-archives.html']) %]" target="wws_help">
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>
<i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" </a>
aria-hidden="true"></i>
</a>
</h2> </h2>


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


<form class="noborder" name="zip_form" method="post" action="[% path_cgi %]"> <form class="noborder" name="zip_form" method="post" action="[% path_cgi %]">
<div> <div>
<label for="directories">[%|loc%]Archive Selection:[%END%]</label><br /> <label for="directories">[%|loc%]Archive Selection:[%END%]</label>
<select name="directories" id="directories" multiple="multiple" size="4"> <br />
[% FOREACH u = yyyymm ~%] <select name="directories" id="directories" multiple="multiple" size="4">
<option value="[% u %]">[% u %]</option> [% FOREACH u = yyyymm ~%]
[% END %] <option value="[% u %]">[% u %]</option>
</select> [% END %]
</div> </select>
<input name="list" type="hidden" value="[% list %]" /> </div>
<div> <input name="list" type="hidden" value="[% list %]" />
<input class="MainMenuLinks" type="submit" name="action_arc_download" <div>
value="[%|loc%]Download .zip archive[%END%]" /> <input class="MainMenuLinks" type="submit" name="action_arc_download" value="[%|loc%]Download .zip archive[%END%]" />
<input class="MainMenuLinks" type="submit" name="action_arc_delete" <input class="MainMenuLinks" type="submit" name="action_arc_delete" value="[%|loc%]Delete Selected Month(s)[%END%]" />
value="[%|loc%]Delete Selected Month(s)[%END%]" /> </div>
</div>
</form> </form>


</div> </div>
Oops, something went wrong.

0 comments on commit 426ab2b

Please sign in to comment.