- <ul class='list-inline' id="login_auth_buttons">
- <li class="list-inline-item me-3">
- <%= link_to image_tag("openid.png",
- :alt => t("application.auth_providers.openid.title"),
- :size => "36"),
- "#",
- :id => "openid_open_url",
- :title => t("application.auth_providers.openid.title") %>
- </li>
+ <% if prefered_auth_button_available %>
+ <div class="col justify-content-center d-flex align-items-center flex-wrap">
+ <% %w[google facebook microsoft github wikipedia].each do |provider| %>
+ <% if Settings.key?("#{provider}_auth_id".to_sym) -%>
+ <% if @preferred_auth_provider == provider %>
+ <%= auth_button_preferred provider, provider %>
+ <% end %>
+ <% end -%>
+ <% end -%>
+ </div>
+ <% end %>
+
+ <div class="col justify-content-center d-flex align-items-center flex-wrap gap-2">
+ <%= button_tag image_tag("openid.svg",
+ :alt => t(".openid.alt"),
+ :size => "36"),
+ :type => "button",
+ :id => "openid_open_url",
+ :title => t(".openid.title"),
+ :class => "btn btn-light p-2" %>