use Current.contact_email in app
This commit is contained in:
parent
d13910dac4
commit
edc4e60b81
7 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
|
@ -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(', '))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue