From 9f03b4cfee95183ce20b73e92d86d15bd8191bd4 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Thu, 27 Jun 2024 17:43:30 +0200 Subject: [PATCH] correct typos and remove agent connect suggestion in mail --- app/mailers/groupe_instructeur_mailer.rb | 4 ++-- .../confirm_and_notify_added_instructeur.html.haml | 4 ---- app/views/user_mailer/invite_instructeur.html.haml | 4 ---- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/mailers/groupe_instructeur_mailer.rb b/app/mailers/groupe_instructeur_mailer.rb index 76f0e917c..321906e35 100644 --- a/app/mailers/groupe_instructeur_mailer.rb +++ b/app/mailers/groupe_instructeur_mailer.rb @@ -20,9 +20,9 @@ class GroupeInstructeurMailer < ApplicationMailer @current_instructeur_email = current_instructeur_email subject = if group.procedure.groupe_instructeurs.many? - "Vous avez été ajouté(e) au groupe \"#{group.label}\" de la démarche \"#{group.procedure.libelle}\"" + "Vous avez été ajouté(e) au groupe « #{group.label} » de la démarche « #{group.procedure.libelle} »" else - "Vous avez été affecté(e) à la démarche \"#{group.procedure.libelle}\"" + "Vous avez été affecté(e) à la démarche « #{group.procedure.libelle} »" end mail(bcc: added_instructeur_emails, subject: subject) diff --git a/app/views/instructeur_mailer/confirm_and_notify_added_instructeur.html.haml b/app/views/instructeur_mailer/confirm_and_notify_added_instructeur.html.haml index a6db49ee6..9fd94075e 100644 --- a/app/views/instructeur_mailer/confirm_and_notify_added_instructeur.html.haml +++ b/app/views/instructeur_mailer/confirm_and_notify_added_instructeur.html.haml @@ -16,10 +16,6 @@ Lors de vos prochaines connexions sur #{Current.application_name} cliquez sur le bouton « Se connecter » positionné sur le haut de page ou bien sur ce lien :  = link_to new_user_session_url, new_user_session_url -- if AgentConnectService.enabled? - %p - Vous êtes un agent de l'état et avez accès à AgentConnect ? Vous pouvez utiliser la connexion AgentConnect en suivant ce lien :  - = link_to agent_connect_url, agent_connect_url %p Nous vous invitons aussi à consulter notre tutoriel à destination des nouveaux instructeurs : = link_to(INSTRUCTEUR_TUTORIAL_URL, INSTRUCTEUR_TUTORIAL_URL) diff --git a/app/views/user_mailer/invite_instructeur.html.haml b/app/views/user_mailer/invite_instructeur.html.haml index b7ba5b9e8..19e64170e 100644 --- a/app/views/user_mailer/invite_instructeur.html.haml +++ b/app/views/user_mailer/invite_instructeur.html.haml @@ -18,10 +18,6 @@ Lors de vos prochaines connexions sur #{Current.application_name} cliquez sur le bouton « Se connecter » positionné sur le haut de page ou bien sur ce lien :  = link_to new_user_session_url, new_user_session_url -- if AgentConnectService.enabled? - %p - Vous êtes un agent de l'état et avez accès à AgentConnect ? Vous pouvez utiliser la connexion AgentConnect en suivant ce lien :  - = link_to agent_connect_url, agent_connect_url %p Nous vous invitons aussi à consulter notre tutoriel à destination des nouveaux instructeurs : = link_to(INSTRUCTEUR_TUTORIAL_URL, INSTRUCTEUR_TUTORIAL_URL)