2 <div class="justify-content-center d-flex align-items-center flex-wrap mb-3" id="login_auth_buttons">
4 <% prefered_auth_button_available = false %>
5 <% %w[google facebook microsoft github wikipedia].each do |provider| %>
6 <% if Settings.key?("#{provider}_auth_id".to_sym) -%>
7 <% if @preferred_auth_provider == provider %>
8 <% prefered_auth_button_available = true %>
13 <% if prefered_auth_button_available %>
14 <div class="justify-content-center d-flex align-items-center flex-wrap w-50">
15 <% %w[google facebook microsoft github wikipedia].each do |provider| %>
16 <% if Settings.key?("#{provider}_auth_id".to_sym) -%>
17 <% if @preferred_auth_provider == provider %>
18 <%= auth_button_preferred provider, provider %>
23 <div class="justify-content-center d-flex align-items-center flex-wrap gap-2 w-50 px-1">
25 <div class="justify-content-center d-flex align-items-center flex-wrap gap-2">
28 <%= link_to image_tag("openid.svg",
29 :alt => t("application.auth_providers.openid.alt"),
32 :id => "openid_open_url",
33 :title => t("application.auth_providers.openid.title"),
34 :class => "btn btn-light p-2 d-block" %>
36 <% %w[google facebook microsoft github wikipedia].each do |provider| %>
37 <% unless @preferred_auth_provider == provider %>
38 <% if Settings.key?("#{provider}_auth_id".to_sym) -%>
39 <%= auth_button provider, provider %>
46 <%# :tabindex starts high to allow rendering at the bottom of the template %>
47 <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
48 <div id="login_openid_url" class="mb-3">
49 <label for="openid_url" class="form-label"><%= t ".openid_html", :logo => openid_logo %></label>
50 <%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %>
51 <%= text_field_tag("openid_url", "", :tabindex => 20, :autocomplete => "on", :class => "openid_url form-control") %>
52 <span class="form-text text-body-secondary">(<a href="<%= t "accounts.edit.openid.link" %>" target="_new"><%= t "accounts.edit.openid.link text" %></a>)</span>
55 <%= submit_tag t(".openid_login_button"), :tabindex => 21, :id => "openid_login_button", :class => "btn btn-primary" %>