* views/shared/authentication etc i18n * remove ja.yml * Update _providers_registration_form.html.erb * Update registrations_spec.rb * Update _email_registration_form.html.erb * Update _forem_creator_signup.html.erb * Update spec/requests/registrations_spec.rb Co-authored-by: Michael Kohl <citizen428@forem.com> * Update dashboard_spec.rb * Update dashboard_spec.rb * Update _forem_creator_signup.html.erb * Update _forem_creator_signup.html.erb Co-authored-by: Michael Kohl <citizen428@forem.com>
17 lines
1.4 KiB
Text
17 lines
1.4 KiB
Text
<div class="registration__actions-providers">
|
|
<% authentication_enabled_providers.each do |provider| %>
|
|
<% next unless display_social_login?(provider.provider_name) %>
|
|
<%= form_with url: provider.sign_in_path(state: "navbar_basic"), class: "flex w-100", local: true do |f| %>
|
|
<%= f.button type: :submit, class: "crayons-btn crayons-btn--l crayons-btn--brand-#{provider.provider_name} crayons-btn--icon-left grow-1 whitespace-nowrap" do %>
|
|
<%= inline_svg_tag("#{provider.provider_name}.svg", aria_hidden: true, class: "crayons-icon", title: provider.provider_name) %>
|
|
<%= t("views.auth.provider.text", action: params[:state] == "new-user" ? t("views.auth.provider.signup") : t("views.auth.provider.login"), provider: provider.official_name) %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
<% if params[:state] == "new-user" && Settings::Authentication.allow_email_password_registration && !ForemInstance.invitation_only? %>
|
|
<%= link_to "#{inline_svg_tag('email.svg', aria_hidden: true, class: 'crayons-icon', title: t('views.auth.provider.email.icon'))}#{t('views.auth.provider.email.text')}".html_safe,
|
|
request.params.merge(state: "email_signup").except("i"),
|
|
class: "crayons-btn crayons-btn--l crayons-btn--brand-email crayons-btn--icon-left whitespace-nowrap",
|
|
data: { no_instant: "" } %>
|
|
<% end %>
|
|
</div>
|