- <%= link_to image_tag("openid.svg",
- :alt => t("application.auth_providers.openid.alt"),
- :size => "36"),
- "#",
- :id => "openid_open_url",
- :title => t("application.auth_providers.openid.title"),
- :class => "btn btn-light mx-1 p-2 d-block" %>
-
- <% %w[google facebook microsoft github wikipedia].each do |provider| %>
- <% unless @preferred_auth_provider == provider %>
- <% if Settings.key?("#{provider}_auth_id".to_sym) -%>
- <%= auth_button provider, provider %>
- <% end -%>
- <% end %>
+ <div class="col justify-content-center d-flex align-items-center flex-wrap gap-2">
+ <% Auth.providers.each_value do |provider| %>
+ <% if provider == "openid" %>
+ <%= 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-outline-secondary border p-2" %>
+ <% elsif provider != @preferred_auth_provider %>
+ <%= auth_button provider %>
+ <% end -%>