Created
February 18, 2015 17:45
-
-
Save monkbroc/7d9cc5b1c08ab627e926 to your computer and use it in GitHub Desktop.
OmniAuth sign in view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="signin-container"> | |
| <h2>Sign in with</h2> | |
| <%- if devise_mapping.omniauthable? %> | |
| <ul class="image-list signin-icons"> | |
| <%- resource_class.omniauth_providers.each do |provider| %> | |
| <li><%= link_to omniauth_authorize_path(resource_name, provider), :title => "Sign in with #{provider.to_s.titleize}" do %> | |
| <%= image_tag "oauth_#{provider}.png", :alt => "Sign in with #{provider.to_s.titleize}" %><% end -%> | |
| </li> | |
| <% end %> | |
| </ul> | |
| <% end -%> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment