<commit_before><h1><%= _('e-Mail configuration') %></h1>

<%= error_messages_for :task %>

<% if profile.user.email_activation_pending? %>

  <p><%= _('You already request activation of your mailbox. Please wait until an administrator approves your request.') %></p>

  <% button_bar do %>
    <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
  <% end %>

<% else %>


  <% if profile.user.enable_email %>

    <p><%= _("Disable e-Mail account below:") %></p>
    <ul><%= profile.email_addresses.map{|i| content_tag('li', i)}.join("\n") %></ul>
    <% button_bar do %>
      <%= button(:cancel, _('Disable e-Mail'), { :action => 'disable' }, :method => 'post') %>
      <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
    <% end %>

  <% else %>

    <p><%= _("Enable e-Mail account below:") %></p>
    <ul><%= profile.email_addresses.map{|i| content_tag('li', i)}.join("\n") %></ul>
    <blockquote><%= _("You'll be able to access a webmail from your user menu.") %></blockquote>
    <% button_bar do %>
      <%= button(:ok, _('Enable e-Mail'), { :action => 'enable' }, :method => 'post') %>
      <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
    <% end %>

  <% end %>

<% end %><commit_msg>Do not offer the option to disable e-mail<commit_after><h1><%= _('e-Mail configuration') %></h1>

<%= error_messages_for :task %>

<% if profile.user.email_activation_pending? %>

  <p><%= _('You already request activation of your mailbox. Please wait until an administrator approves your request.') %></p>

  <% button_bar do %>
    <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
  <% end %>

<% else %>


  <% if profile.user.enable_email %>
    <h2><%= ('E-mail address') %></h2>
    <ul>
      <%= profile.email_addresses.map{|i| content_tag('li', i)}.join("\n") %>
    </ul>
    <h2><%= _('Configuration') %></h2>
    <ul>
      <li>
      <%= link_to _('Mail configuration for POP and IMAP'), 'http://www.ynternet.org/move/infos-technique-pour-utiliser-multypass-pop3-smtp-imap-ftp-quotas...' %>  
      </li>
    </ul>
    <% button_bar do %>
      <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
    <% end %>

  <% else %>

    <h2><%= _("Enable e-Mail account below:") %></h2>
    <ul><%= profile.email_addresses.map{|i| content_tag('li', i)}.join("\n") %></ul>
    <blockquote><%= _("You'll be able to access a webmail from your user menu.") %></blockquote>
    <% button_bar do %>
      <%= button(:ok, _('Enable e-Mail'), { :action => 'enable' }, :method => 'post') %>
      <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
    <% end %>

  <% end %>

<% end %>
{'fraction_non_alphanumeric': 0.22796242774566475, 'fraction_numerical': 0.003973988439306358, 'mean_word_length': 3.4951298701298703, 'pattern_counts': {'":': 0, '<': 88, '<?xml version=': 0, '>': 100, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2337205', 'n_tokens_mistral': 1042, 'n_tokens_neox': 923, 'n_words': 239}