Sha256: c086dbe6235f4b4b84a8d52f2632bd00ccc48b097fc66b8351f87f0f2ce717bc

Contents?: true

Size: 1.58 KB

Versions: 7

Compression:

Stored size: 1.58 KB

Contents

<%= render :partial => 'admin/shared/configuration_menu' %>

<h1><%= t("mail_server_settings") %></h1>


<%# TODO: move this code to a helper? %>
<div id="mail_delivery_status" class="error-or-notice">
  <%= 
    if Spree::Config[:enable_mail_delivery]
      content_tag(:h4, t('mail_delivery_enabled'))
    else
      content_tag(:h4, t('mail_delivery_not_enabled'))
    end
  %>
</div>

<table>
  <tr>
    <th scope="row"><%= t("smtp_domain") %>:</th> 
    <td><%=  Spree::Config[:mail_domain] %></td>
  </tr>
  <tr>
    <th scope="row"><%= t('smtp_mail_host') %>:</th> 
    <td><%= Spree::Config[:mail_host] %></td>
  </tr>
  <tr>
    <th scope="row"><%= t('smtp_port') %>:</th> 
    <td><%= Spree::Config[:mail_port] %></td>
  </tr>
  <tr>
    <th scope="row"><%= t('secure_connection_type')  %>:</th> 
    <td><%= Spree::Config[:secure_connection_type] %></td>
  </tr>
  <tr>
    <th scope="row"><%= t('smtp_authentication_type') %>:</th> 
    <td><%= Spree::Config[:mail_auth_type] %></td>
  </tr>

  <% unless Spree::Config[:mail_auth_type] == "none" -%>
    <tr>
      <th><%= t('smtp_username') %>:</th>
      <td><%= Spree::Config[:smtp_username] %></td>
    </tr>
    <tr>
      <th><%= t('smtp_password') %>:</th>
      <td><%= t("not_shown") unless Spree::Config[:smtp_password].blank? -%></td>
    </tr>
  <% end -%>

  <tr>
    <th><%= t('copy_all_mails_to') %>:</th>
    <td>
      <%= t('a_copy_of_all_mail_will_be_sent_to_the_following_addresses') %><br />
      <%= Spree::Config[:mail_bcc] %>
    </td>
  </tr>

</table>
<p><%= link_to_with_icon 'edit', t("edit"), edit_admin_mail_settings_path %></p>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
kdmny-spree-0.0.1 app/views/admin/mail_settings/show.html.erb
spree-0.8.4 app/views/admin/mail_settings/show.html.erb
spree-0.8.5 app/views/admin/mail_settings/show.html.erb
spree-0.8.0 app/views/admin/mail_settings/show.html.erb
spree-0.8.1 app/views/admin/mail_settings/show.html.erb
spree-0.8.2 app/views/admin/mail_settings/show.html.erb
spree-0.8.3 app/views/admin/mail_settings/show.html.erb