<!-- $Id: admin_menu.tt2 6099 2009-08-13 08:31:02Z olivier.salaun $ -->

    <td style="background: [% color_4 %]; text-align: center;" colspan="9">
	  <span style="color: [% color_13 %]"><strong>[%|loc%]List Administration Panel[%END%]</strong></span>
    </td>
    </tr>
    <tr>
        [% IF action == 'review' %]
    <td style="background: [% color_4 %]; text-align: center;">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Subscribers[%END%]</strong></span>
    </td>
    [% ELSE %]
    <td style="background: [% color_9 %]; text-align: center;">
       [% IF is_owner %]
       <a href="[% path_cgi %]/review/[% list %]">
       <span style="font-size: smaller;"><strong>[%|loc%]Subscribers[%END%]</strong></span></a>
       [% END %]
    </td>
    [% END %]

    [% IF action == 'edit_list_request' %]
    <td style="background: [% color_4 %]; text-align: center;">
      <a href="[% path_cgi %]/edit_list_request/[% list %]">
      <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Edit List Config[%END%]</strong></span></a>
    </td>
    [% ELSE %]
    <td style="background: [% color_9 %]; text-align: center;">
        <a href="[% path_cgi %]/edit_list_request/[% list %]">
          <span style="font-size: smaller;"><strong>[%|loc%]Edit List Config[%END%]</strong></span></a>
    </td>
    [% END %]

    [% IF action == 'modindex' %]
    <td style="background: [% color_4 %]; text-align: center;">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Moderate[%END%]</strong></span>
    </td>
    [% ELSE %]
       [% IF is_editor %]
       <td style="background: [% color_9 %]; text-align: center;">
         <a href="[% path_cgi %]/modindex/[% list %]">
         <span style="font-size: smaller;"><strong>[%|loc%]Moderate[%END%]</strong></span></a>
       </td>
       [% ELSE %]
         <td style="background: [% color_9 %]; text-align: center;">
           <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Moderate[%END%]</strong></span>
         </td>
       [% END %]
    [% END %]

    [% IF action == 'editfile' %]
    <td style="background: [% color_4 %]; text-align: center;">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Customizing[%END%]</strong></span>
    </td>
    [% ELSE %]
    <td style="background: [% color_9 %]; text-align: center;">
       [% IF is_owner %]
       <a href="[% path_cgi %]/editfile/[% list %]">
       <span style="font-size: smaller;"><strong>[%|loc%]Customizing[%END%]</strong></span></a>
       [% END %]
    </td>
    [% END %]

   [% IF is_archived %]
    [% IF action == 'arc_manage' %]
    <td style="background: [% color_4 %]; text-align: center;">
      <a href="[% path_cgi %]/arc_manage/[% list %]">
      <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Manage Archives[%END%]</strong></span></a>
    </td>
    [% ELSE %]
    <td style="background: [% color_9 %]; text-align: center;">
        [% IF is_owner %]
        <a href="[% path_cgi %]/arc_manage/[% list %]">
	<span style="font-size: smaller;"><strong>[%|loc%]Manage Archives[%END%]</strong></span></a>
        [% END %]
    </td>
    [% END %]
  [% END %]

    [% IF action == 'reviewbouncing' %]
    <td style="background: [% color_4 %]; text-align: center;">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Bounces[%END%]</strong></span>
    </td>
    [% ELSE %]
    <td style="background: [% color_9 %]; text-align: center;">
       [% IF is_owner %]
       <a href="[% path_cgi %]/reviewbouncing/[% list %]">
       <span style="font-size: smaller;"><strong>[%|loc%]Bounces[%END%]</strong></span></a>
       [% END %]
    </td>
    [% END %]

    <td style="background: [% color_9 %]; text-align: center;">
	[% IF shared == 'none' %]
          [% IF is_privileged_owner %]
          <a href="[% path_cgi %]/d_admin/[% list %]/create">
             <span style="font-size: smaller;"><strong>[%|loc%]Create Shared[%END%]</strong></span></a>
          [% ELSE %]
             <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Create Shared[%END%]</strong></span>
          [% END %]
	[% ELSIF shared == 'deleted' %]
          <a href="[% path_cgi %]/d_admin/[% list %]/restore">
             <span style="font-size: smaller;"><strong>[%|loc%]Restore shared[%END%]</strong></span></a>
	[% ELSIF shared == 'exist' %]
          <a href="[% path_cgi %]/d_admin/[% list %]/delete" >
             <span style="font-size: smaller;"><strong>[%|loc%]Delete Shared[%END%]</strong></span></a>
        [% ELSE %]
          <span style="font-size: smaller; color: red;">
          [% shared %]
          </span>
	[% END %]        
    </td>

   <td style="background: [% color_9 %]; text-align: center;">
       [% IF list_conf.status == 'closed' %]         
        [% IF is_listmaster %]                   
        <a href="[% path_cgi %]/restore_list/[% list %]" >
          <span style="font-size: smaller;"><strong>[%|loc%]Restore List[%END%]</strong></span></a>
        [% ELSE %]                               
          <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Restore List[%END%]</strong></span>
        [% END %]                              
       [% ELSIF is_privileged_owner %]                 
        <a href="[% path_cgi %]/close_list/[% list %]" onclick="request_confirm_link('[% path_cgi %]/close_list/[% list %]', '[% FILTER escape_quote %][%|loc(list)%]Are you sure you wish to close %1 list?[%END%][%END%]'); return false;"><span style="font-size: smaller;"><strong>[%|loc%]Remove List[%END%]</strong></span></a>
       [% ELSIF is_owner %]                      
       <a href="[% path_cgi %]/close_list/[% list %]" onclick="request_confirm_link('[% path_cgi %]/close_list/[% list %]', '[% FILTER escape_quote %][%|loc(list)%]Are you sure you wish to close %1 list?[%END%][%END%]'); return false;"><span style="font-size: smaller;"><strong>[%|loc%]Remove List[%END%]</strong></span></a>
       [% END %]                               
    </td>       
  <td style="background: [% color_9 %]; text-align: center;">
    [% IF may_create_list %]
      <a href="[% path_cgi %]/rename_list_request/[% list %]"><span style="font-size: smaller;"><strong>[%|loc%]Rename List[%END%]</strong></span></a>
    [% ELSE %]
      <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Rename List[%END%]</strong></span>
    [%END%]
  </td>
    [% IF action == 'edit_list_request' %]
    </tr>
    <tr>
    <td style="background: [% color_4 %]; text-align: center;">
       <a href="[% path_cgi %]/edit_list_request/[% list %]/description">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]List Definition[%END%]</strong></span></a>
    </td>
    <td style="background: [% color_4 %]; text-align: center;">
       <a href="[% path_cgi %]/edit_list_request/[% list %]/sending">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Sending/Receiving[%END%]</strong></span></a>
    </td> 
    <td style="background: [% color_4 %]; text-align: center;">
       <a href="[% path_cgi %]/edit_list_request/[% list %]/command">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Privileges[%END%]</strong></span></a>
    </td>
    <td style="background: [% color_4 %]; text-align: center;">
       <a href="[% path_cgi %]/edit_list_request/[% list %]/archives">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Archives[%END%]</strong></span></a>
    </td> 
    <td style="background: [% color_4 %]; text-align: center;">
       <a href="[% path_cgi %]/edit_list_request/[% list %]/bounces">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Bounce Settings[%END%]</strong></span></a>
    </td>
    
    <td style="background: [% color_4 %]; text-align: center;">
       <a href="[% path_cgi %]/edit_list_request/[% list %]/other">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Miscellaneous[%END%]</strong></span></a>
    </td>
    <td style="background: [% color_4 %]; text-align: center;">
       <a href="[% path_cgi %]/edit_list_request/[% list %]/data_source">
       <span style="font-size: smaller; color: [% color_13 %];"><strong>[%|loc%]Data Source[%END%]</strong></span></a>
    </td>                             
    [% END %] 
    [% IF action == 'edit_attributes' %]
    </tr>
    <tr>
    <td style="background: [% selected_color %]; text-align: center;">
       <a href="[% path_cgi %]/edit_list_request/[% list %]/description">
       <span style="font-size: smaller; color: [% bg_color %];"><strong>[%|loc%]Attribute optionnal/required[%END%]</strong></span></a>
    </td>
    [% END %] 
<!-- end admin_menu.tt2 -->

