diff --git a/app/controllers/support_controller.rb b/app/controllers/support_controller.rb index f741f85c4..3951e2658 100644 --- a/app/controllers/support_controller.rb +++ b/app/controllers/support_controller.rb @@ -23,7 +23,7 @@ class SupportController < ApplicationController redirect_to root_path(formulaire_contact_general_submitted: true) end else - flash.now.alert = "Une erreur est survenue. Vous pouvez nous contacter à #{helpers.mail_to(CONTACT_EMAIL)}." + flash.now.alert = "Une erreur est survenue. Vous pouvez nous contacter à #{helpers.mail_to(Current.contact_email)}." if params[:admin] setup_context_admin diff --git a/app/controllers/users/profil_controller.rb b/app/controllers/users/profil_controller.rb index 2e039d025..6a2f57328 100644 --- a/app/controllers/users/profil_controller.rb +++ b/app/controllers/users/profil_controller.rb @@ -80,7 +80,7 @@ module Users def ensure_update_email_is_authorized if current_user.instructeur? && !target_email_allowed? - flash.alert = t('users.profil.ensure_update_email_is_authorized.email_not_allowed', contact_email: CONTACT_EMAIL, requested_email: requested_email) + flash.alert = t('users.profil.ensure_update_email_is_authorized.email_not_allowed', contact_email: Current.contact_email, requested_email: requested_email) redirect_to profil_path end end diff --git a/app/views/administrateurs/attestation_template_v2s/edit.html.haml b/app/views/administrateurs/attestation_template_v2s/edit.html.haml index eb4f09f46..308dca5e4 100644 --- a/app/views/administrateurs/attestation_template_v2s/edit.html.haml +++ b/app/views/administrateurs/attestation_template_v2s/edit.html.haml @@ -17,7 +17,7 @@ - c.with_body do Cette page permet la mise en forme de l’attestation avec un nouvel éditeur plus flexible tout en respectant la charte de l’état. Essayez-la et donnez-nous votre avis - en nous envoyant un email à #{mail_to(CONTACT_EMAIL, subject: "Feedback attestation v2")}. + en nous envoyant un email à #{mail_to(Current.contact_email, subject: "Feedback attestation v2")}. %br %strong Les attestations délivrées suivent encore l’ancien format : l’activation des attestations basées sur ce format sera bientôt disponible. diff --git a/app/views/recoveries/support.html.haml b/app/views/recoveries/support.html.haml index 93589f7ca..a7c338652 100644 --- a/app/views/recoveries/support.html.haml +++ b/app/views/recoveries/support.html.haml @@ -7,7 +7,7 @@ - when 'other_nature', 'not_collectivite_territoriale' %p Votre situation nécessite un traitement particulier. - = mail_to(CONTACT_EMAIL, + = mail_to(Current.contact_email, 'Contactez le support', subject: 'Récupération de dossiers', class: 'fr-btn') @@ -30,7 +30,7 @@ %li = link_to 'Essayer avec une autre adresse email', identification_recovery_path, class: 'fr-btn' %li - = mail_to(CONTACT_EMAIL, + = mail_to(Current.contact_email, 'Contactez le support', subject: 'Récupération de dossiers', class: 'fr-btn fr-btn--secondary') diff --git a/app/views/root/patron.html.haml b/app/views/root/patron.html.haml index 9c51ba6c9..968b94d70 100644 --- a/app/views/root/patron.html.haml +++ b/app/views/root/patron.html.haml @@ -273,7 +273,7 @@ .icon.bubble.avis-icon .width-100 %h2.instructeur - = CONTACT_EMAIL + = Current.contact_email %span.date Réponse donnée le 13/01/2012 %p Je donne un avis favorable diff --git a/app/views/static_pages/accessibility_statement.html.haml b/app/views/static_pages/accessibility_statement.html.haml index a0eee1535..3d199fc6f 100644 --- a/app/views/static_pages/accessibility_statement.html.haml +++ b/app/views/static_pages/accessibility_statement.html.haml @@ -123,7 +123,7 @@ %ul.fr-mb-2w %li = t('views.accessibility_statement.contact.infos.email_html') - = mail_to CONTACT_EMAIL + = mail_to Current.contact_email %li = t('views.accessibility_statement.contact.infos.adress_html') diff --git a/app/views/users/profil/show.html.haml b/app/views/users/profil/show.html.haml index cfc5c8ab9..d994663d7 100644 --- a/app/views/users/profil/show.html.haml +++ b/app/views/users/profil/show.html.haml @@ -39,7 +39,7 @@ - if current_user.instructeur? %p.mb-4 = t('.email_explications_html', - contact_email: CONTACT_EMAIL, + contact_email: Current.contact_email, application_name: Current.application_name, legit_admin_domains: LEGIT_ADMIN_DOMAINS.join(', '))