Sha256: 1cd71ac0edbd4076d29f0819f0ca59319401af041fdf2ac566b70428539e7f1e

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

<% if Spree::AuthenticationMethod.active_authentication_methods? %>
  <% @body_id = 'login' %>
  <div id="existing-customer">
    <% if spree_current_user.user_authentications %>
      <% unless spree_current_user.user_authentications.empty? %>
        <p><strong><%= I18n.t('spree.you_have_signed_in_with_these_services') %>:</strong></p>
        <div class="authentications">
          <% for user_authentication in spree_current_user.user_authentications %>
            <div class="authentication">
              <div class="provider columns two">
                <%= content_tag(:i, '', class: "icon-spree-#{user_authentication.provider.dasherize}-circled columns") %>
                <%= user_authentication.provider %>
              </div>
              <div class="uid columns two"><%= user_authentication.uid %></div>
              <%= link_to 'X', user_authentication, data: { confirm: I18n.t('spree.remove_authentication_option_confirmation') }, method: :delete, class: 'remove' %>
            </div>
          <% end %>
          <div class="clear"></div>
        </div>
      <% end %>
    <% end %>

    <% if Spree::AuthenticationMethod.available_for(spree_current_user).present? %>
      <%= content_tag(:p, content_tag(:strong, I18n.t('spree.add_another_service'))) %>
      <%= render 'spree/shared/social' %>
    <% end %>
  </div>

  <div class="clear"></div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_social-1.6.0 app/views/spree/users/_social.html.erb
solidus_social-1.5.0 app/views/spree/users/_social.html.erb
solidus_social-1.4.0 app/views/spree/users/_social.html.erb
solidus_social-1.3.1 app/views/spree/users/_social.html.erb
solidus_social-1.3.0 app/views/spree/users/_social.html.erb