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 <%= button_tag image_tag("openid.svg",
29 :alt => t(".openid.alt"),
32 :id => "openid_open_url",
33 :title => t(".openid.title"),
34 :class => "btn btn-light p-2" %>
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">
50 <%= image_tag "openid.svg", :size => "36", :alt => "", :class => "align-text-bottom" %>
51 <%= t ".openid_url" %>
53 <%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %>
54 <%= text_field_tag("openid_url", "", :tabindex => 20, :autocomplete => "on", :class => "form-control") %>
55 <span class="form-text text-body-secondary">(<a href="<%= t "accounts.edit.openid.link" %>" target="_new"><%= t "accounts.edit.openid.link text" %></a>)</span>
58 <%= submit_tag t(".openid_login_button"), :tabindex => 21, :id => "openid_login_button", :class => "btn btn-primary" %>