<% if Devise.mappings[:user].omniauthable? && any_social_provider_enabled? %>
<%= t('or', scope: "decidim.devise.shared.omniauth_buttons") %>
<%- Decidim::User.omniauth_providers.each do |provider| %> <% if social_provider_enabled? provider %> <%= link_to decidim.send("user_#{provider}_omniauth_authorize_path"), class: "button button--social button--#{normalize_provider_name(provider)} button--social--mini" do %> <% end %> <% end %> <% end %>
<% end %>