<% %w[google facebook microsoft github wikipedia].each do |provider| %>
<% if Settings.key?("#{provider}_auth_id".to_sym) -%>
<% if @preferred_auth_provider == provider %>
<%= link_to image_tag("openid.png",
:alt => t("application.auth_providers.openid.title"),
:size => "24"),
"#",
:id => "openid_open_url",
:title => t("application.auth_providers.openid.title"),
:class => "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 %>
<% end -%>