2020-03-27 16:43:49 +08:00
|
|
|
<%- if devise_mapping.omniauthable? && resource_class.omniauth_providers.any? %>
|
|
|
|
<%= link_to omniauth_authorize_path(resource_name, :linkedin), method: :post, title: "Sign in with LinkedIn", class: 'linkedin-link' do %>
|
|
|
|
<%= image_tag('linkedin/Sign-in-Large---Default.png',
|
|
|
|
class: 'linkedin-signin-button',
|
|
|
|
alt: "Sign in with LinkedIn",
|
2023-05-16 15:34:36 +08:00
|
|
|
data: {
|
|
|
|
'hover-src': image_path('linkedin/Sign-in-Large---Hover.png'),
|
|
|
|
'default-src': image_path('linkedin/Sign-in-Large---Default.png'),
|
|
|
|
'click-src': image_path('linkedin/Sign-in-Large---Active.png')
|
|
|
|
}) %>
|
|
|
|
<%= javascript_include_tag 'users/shared/linkedin_sign_in_links', nonce: true %>
|
2020-03-27 16:43:49 +08:00
|
|
|
<% end -%>
|
2023-05-16 15:34:36 +08:00
|
|
|
<% end -%>
|