scinote-web/app/views/users/shared/_linkedin_sign_in_links.html.erb
Soufiane c28f86d46d
Refactor inline events [SCI-8434] (#5403)
Refactor inline events in task results [SCI-8434]
2023-05-16 09:34:36 +02:00

13 lines
827 B
Text

<%- 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",
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 %>
<% end -%>
<% end -%>