Sha256: 870c3955e7c45557f7879b0ef3766c0c7ff51cb99e69b2e085ca41926aaf9cf6

Contents?: true

Size: 1.19 KB

Versions: 17

Compression:

Stored size: 1.19 KB

Contents

<%- if devise_mapping.omniauthable? %>
  <div class="social-auth-links text-center">
    <p>- OR -</p>

    <%- resource_class.omniauth_providers.each do |service| %>
      <% if [:facebook, :twitter, :google_oauth2].include? service %>
        <% if service == :facebook %>
          <a href='/auth/facebook/' class="btn btn-block btn-social btn-facebook btn-flat">
            <i class="fa fa-facebook"></i>
            <%= t('sign_in_using_facebook') %>
          </a>
        <% end %>

        <% if service == :twitter %>
          <a href='/auth/twitter/' class="btn btn-block btn-social btn-twitter btn-flat">
            <i class="fa fa-twitter"></i>
            <%= t('sign_in_using_twitter') %>
          </a>
        <% end %>

        <% if service == :google_oauth2 %><a href='/auth/google_oauth2/' class="btn btn-block btn-social btn-google btn-flat">
          <i class="fa fa-google-plus"></i>
          <%= t('sign_in_using_google') %>
        </a>
        <% end %>

      <% else %>
        <a href='<%= faalis.user_omniauth_authorize_path(service) %>' class="btn btn-circle"><i class="fa fa-<%= service %>"></i></a>
      <% end %>
    <% end %>
  </div><!-- /.social-auth-links -->

<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
faalis-2.2.0.pre.rc1 app/views/devise/shared/_omni_link.erb
faalis-2.2.1 app/views/devise/shared/_omni_link.erb
faalis-2.2.0 app/views/devise/shared/_omni_link.erb
faalis-2.1.1 app/views/devise/shared/_omni_link.erb
faalis-2.1.0 app/views/devise/shared/_omni_link.erb
faalis-2.0.8 app/views/devise/shared/_omni_link.erb
faalis-2.0.7 app/views/devise/shared/_omni_link.erb
faalis-2.0.5 app/views/devise/shared/_omni_link.erb
faalis-2.0.4 app/views/devise/shared/_omni_link.erb
faalis-2.0.3 app/views/devise/shared/_omni_link.erb
faalis-2.0.1 app/views/devise/shared/_omni_link.erb
faalis-2.0.0 app/views/devise/shared/_omni_link.erb
faalis-2.0.0.rc6 app/views/devise/shared/_omni_link.erb
faalis-2.0.0.rc5 app/views/devise/shared/_omni_link.erb
faalis-2.0.0.rc4 app/views/devise/shared/_omni_link.erb
faalis-2.0.0.rc3 app/views/devise/shared/_omni_link.erb
faalis-2.0.0.rc2 app/views/devise/shared/_omni_link.erb