X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fee09d5153a272500b847a008c770d19f05e0812..6ef11b2c9a0ecb98308206842c9dd4798eaf4e20:/app/views/application/_auth_providers.html.erb diff --git a/app/views/application/_auth_providers.html.erb b/app/views/application/_auth_providers.html.erb index b7fb5ba4d..3edc6edd2 100644 --- a/app/views/application/_auth_providers.html.erb +++ b/app/views/application/_auth_providers.html.erb @@ -1,4 +1,4 @@ -<% prefered_auth_button_available = @preferred_auth_provider != "openid" && Auth.providers.value?(@preferred_auth_provider) %> +<% prefered_auth_button_available = @preferred_auth_provider != "openid" && Auth.providers.include?(@preferred_auth_provider) %>
<%= tag.div :id => "login_auth_buttons", @@ -11,16 +11,16 @@ <% end %>
- <% Auth.providers.each_value do |provider| %> + <% Auth.providers.each do |provider| %> <% if provider == "openid" %> - <%= button_tag image_tag("openid.svg", + <%= button_tag image_tag("auth_providers/openid.svg", :alt => t(".openid.alt"), :size => "36"), :type => "button", :data => { "bs-toggle" => "collapse", "bs-target" => "#login_auth_buttons, #openid_login_form" }, :title => t(".openid.title"), - :class => "btn btn-light p-2" %> + :class => "btn btn-outline-secondary border p-2" %> <% elsif provider != @preferred_auth_provider %> <%= auth_button provider %> <% end -%> @@ -32,7 +32,7 @@ <%= form_tag auth_path(:provider => "openid"), :id => "openid_login_form", :class => "collapse" do %>
<%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %>