Sha256: 861d479268a7efd51b6f6ac79b68abafc4318fa3a37a6978133990f55e0a92b5

Contents?: true

Size: 1.39 KB

Versions: 3

Compression:

Stored size: 1.39 KB

Contents

<% @body_id = 'login' %>
<div id="existing-customer">
  <table>
    <tr>
      <% if @user.anonymous? %>
        <%= render :partial => 'shared/social_registrations', :locals => {:user => @user, :omniauth => @omniauth} %>
      <% else %>
      <td><%= t("email") %>:</td>
      <td>
        <%= @user.email %>
      </td>
      <td><p><%= link_to t('edit'), edit_account_path %></p></td>
      <% end %>
    </tr>
  </table>

<% if @user.user_authentications %>
  <% unless @user.user_authentications.empty? %>
    <p><strong>You have signed in with these services:</strong></p>
    <div class="authentications">
      <% for user_authentication in @user.user_authentications %>
        <div class="authentication">
          <%= image_tag "social/#{user_authentication.provider}_32.png", :size => "32x32" %>
          <div class="provider"><%= user_authentication.provider %></div>
          <div class="uid"><%= user_authentication.nickname %></div>
          <%= link_to( "X", user_authentication, :confirm => 'Are you sure you want to remove this authentication option?', :method => :delete, :class => "remove") %>
        </div>
      <% end %>
      <div class="clear"></div>
    </div>
  <% end %>
</div>
  <p><strong>Add another service to sign in with:</strong></p>
<% end %>

<%= hook :login_extras %>

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

<% content_for :head do %>
  <%= stylesheet_link_tag 'social.css' %>  
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_social-1.1 app/views/users/_social.html.erb
spree_social-1.0.2 app/views/users/_social.html.erb
spree_social-1.0.1 app/views/users/_social.html.erb