Merge pull request #1042 from okriuchykhin/ok_SCI_2201

Use larger LinkedIn sign-in button [SCI-2201]
This commit is contained in:
okriuchykhin 2018-03-19 16:23:22 +01:00 committed by GitHub
commit 2356b78044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

View file

@ -2203,3 +2203,7 @@ th.custom-field .modal-tooltiptext {
.parse-records-table {
max-height: 200px;
}
.linkedin-signin-button {
margin: 15px 0;
}

View file

@ -27,10 +27,12 @@
<%- if Rails.configuration.x.enable_user_registration && Rails.configuration.x.linkedin_signin_enabled %>
<%- if devise_mapping.omniauthable? && resource_class.omniauth_providers.any? && controller_name != 'registrations' %>
<%= link_to omniauth_authorize_path(resource_name, :linkedin), :title => "Sign in with LinkedIn" do %>
<%= image_tag 'linkedin/Sign-in-Small---Default.png', alt: "Sign in with LinkedIn",
onmouseover: "src='#{image_path('linkedin/Sign-in-Small---Hover.png')}'",
onmouseout: "src='#{image_path('linkedin/Sign-in-Small---Default.png')}'",
onclick: "src='#{image_path('linkedin/Sign-in-Small---Active.png')}'" %>
<%= image_tag('linkedin/Sign-in-Large---Default.png',
class: 'linkedin-signin-button',
alt: "Sign in with LinkedIn",
onmouseover: "src='#{image_path('linkedin/Sign-in-Large---Hover.png')}'",
onmouseout: "src='#{image_path('linkedin/Sign-in-Large---Default.png')}'",
onclick: "src='#{image_path('linkedin/Sign-in-Large---Active.png')}'") %>
<% end -%>
<% end -%>
<% end -%>