]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/application/_auth_providers.html.erb
Merge remote-tracking branch 'upstream/pull/5536'
[rails.git] / app / views / application / _auth_providers.html.erb
index f6665cefecae153f74a1e9192ad17031dc21b704..3edc6edd2476d9a8fd195867f7d01b832c7f29eb 100644 (file)
@@ -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) %>
 
 <div>
   <%= tag.div :id => "login_auth_buttons",
@@ -11,7 +11,7 @@
     <% end %>
 
     <div class="col justify-content-center d-flex align-items-center flex-wrap gap-2">
-      <% Auth.providers.each_value do |provider| %>
+      <% Auth.providers.each do |provider| %>
         <% if provider == "openid" %>
           <%= button_tag image_tag("auth_providers/openid.svg",
                                    :alt => t(".openid.alt"),
@@ -20,7 +20,7 @@
                          :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 -%>