%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= I18n.t('spree.social_authentication_methods') %> <% end %> <% content_for :page_actions do %> <% if can? :manage, Spree::AuthenticationMethod %>
<% end %> <% end %> <% if @authentication_methods.any? %><%= I18n.t('spree.social_provider') %> | <%= I18n.t('spree.social_api_key') %> | <%= I18n.t('spree.social_api_secret') %> | <%= I18n.t('spree.environment') %> | <%= I18n.t('spree.active') %> | <% @authentication_methods.each do |method|%> |
---|---|---|---|---|---|
<%= method.provider %> | <%= truncate method.api_key, length: 10 %> | <%= truncate method.api_secret, length: 10 %> | <%= method.environment.to_s.titleize %> | <%= method.active ? I18n.t('spree.yes') : I18n.t('spree.no') %> | <% if can? :manage, Spree::AuthenticationMethod %> <%= link_to_edit method, no_text: true %> <%= link_to_delete method, no_text: true %> <% end %> |