Sha256: 7418129e93ccfc3b8dd9600ae1a3917fedc7ccefdedddc8548d896b4b69282a8

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 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><%= Spree.t(: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.to_url}-circled columns") %>
              <%= user_authentication.provider %>
            </div>
            <div class="uid columns two"><%= user_authentication.uid %></div>
            <%= link_to 'X', user_authentication, data: { confirm: "#{Spree.t(:remove_authentication_option_confirmation)}" }, method: :delete, class: 'remove' %>
          </div>
        <% end %>
        <div class="clear"></div>
      </div>
    <% end %>

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_social-1.0.0 app/views/spree/users/_social.html.erb