docbrown/app/views/shared/authentication/_providers_registration_form.html.erb
rhymes 8407bf9b4e
[deploy] Authentication refactoring: cleanups (#7576)
* Use Devise registry to list available providers

* Cleanups following Devise+Omniauth docs

* More cleanups

* Use helpers

* More cleanups

* Oops, forgot to remove these specs
2020-04-29 10:33:30 -04:00

8 lines
367 B
Text

<% authentication_enabled_providers.each do |provider| %>
<a
href="<%= provider.sign_in_path(state: "join-club-page_basic") %>"
class="sign-up-link"
data-no-instant>
<%= inline_svg_tag("#{provider.provider_name}-logo.svg", class: "icon-img", aria: true, title: "#{provider.name} logo") %> Sign In with <%= provider.official_name %>
</a>
<% end %>