From ddfd1bedb32ba7364087e96348a016af24e6afff Mon Sep 17 00:00:00 2001 From: cyrillefr Date: Fri, 11 Apr 2025 20:04:33 +0200 Subject: [PATCH] Replace link with button in devise shared links Cf. conversation https://github.com/consuldemocracy/consuldemocracy/pull/5955#discussion_r2158715957 Need to get this i18n_spec.rb to run to delete the key shared.links.signin_with_provider. --- app/views/devise/shared/_links.html.erb | 6 ------ config/locales/en/devise_views.yml | 1 - config/locales/es/devise_views.yml | 1 - 3 files changed, 8 deletions(-) diff --git a/app/views/devise/shared/_links.html.erb b/app/views/devise/shared/_links.html.erb index d4f343b14..13f51a9b1 100644 --- a/app/views/devise/shared/_links.html.erb +++ b/app/views/devise/shared/_links.html.erb @@ -11,10 +11,4 @@ <%= link_to t("devise_views.shared.links.new_unlock"), new_unlock_path(resource_name) %>
<% end -%> - <%- if devise_mapping.omniauthable? && devise_mapping.name == "user" %> - <%- resource_class.omniauth_providers.each do |provider| %> - <%= link_to t("devise_views.shared.links.signin_with_provider", provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider), method: :post %>
- <% end -%> - <% end -%> - diff --git a/config/locales/en/devise_views.yml b/config/locales/en/devise_views.yml index 85e95184f..82a67bb18 100644 --- a/config/locales/en/devise_views.yml +++ b/config/locales/en/devise_views.yml @@ -69,7 +69,6 @@ en: new_confirmation: Haven't received instructions to activate your account? new_password: Forgotten your password? new_unlock: Haven't received unlocking instructions? - signin_with_provider: Sign in with %{provider} signup: Don't have an account? %{signup_link} signup_link: Sign up unlocks: diff --git a/config/locales/es/devise_views.yml b/config/locales/es/devise_views.yml index 5e3d5a40e..a18c8f6c5 100644 --- a/config/locales/es/devise_views.yml +++ b/config/locales/es/devise_views.yml @@ -69,7 +69,6 @@ es: new_confirmation: '¿No has recibido instrucciones para confirmar tu cuenta?' new_password: '¿Olvidaste tu contraseña?' new_unlock: '¿No has recibido instrucciones para desbloquear?' - signin_with_provider: Entrar con %{provider} signup: '¿No tienes una cuenta? %{signup_link}' signup_link: Regístrate unlocks: