Sha256: 0f56514a5a750b20a4cc1e73b4120e64094c67c901e6b7454c50fde4bd3c2888

Contents?: true

Size: 1.75 KB

Versions: 15

Compression:

Stored size: 1.75 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
  %>
	<%= 
    if Spree::Config[:use_mail_queue]
      content_tag(:h4, t('mail_queue_enabled'))
    else
      content_tag(:h4, t('mail_queue_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

15 entries across 15 versions & 2 rubygems

Version Path
spree-0.11.4 vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-0.11.3 vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-0.11.2 vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-0.11.1 vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-0.11.0 vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-0.10.2 vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-0.10.1 vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-0.10.0 vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-0.10.0.beta vendor/extensions/theme_default/app/views/admin/mail_settings/show.html.erb
spree-enriquez-0.9.4 app/views/admin/mail_settings/show.html.erb
spree-0.9.4 app/views/admin/mail_settings/show.html.erb
spree-0.9.3 app/views/admin/mail_settings/show.html.erb
spree-0.9.2 app/views/admin/mail_settings/show.html.erb
spree-0.9.1 app/views/admin/mail_settings/show.html.erb
spree-0.9.0 app/views/admin/mail_settings/show.html.erb