improve email wording for transfert with DS account
This commit is contained in:
parent
f18b71a36b
commit
463e3e1538
4 changed files with 6 additions and 6 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
%p
|
||||
- if @user.present?
|
||||
= t('.transfer_text')
|
||||
= t('.transfer_text', app_name: Current.application_name)
|
||||
%br
|
||||
= link_to t('.transfer_link'), dossiers_url(statut: 'dossiers-transferes')
|
||||
- else
|
||||
|
|
|
@ -2,8 +2,8 @@ en:
|
|||
dossier_mailer:
|
||||
notify_transfer:
|
||||
subject: You have a pending transfer request.
|
||||
transfer_text: "Access the transfer request by clicking on the following link:"
|
||||
transfer_link: transfer request
|
||||
transfer_text: "In order to accept or refuse the request you must log in on %{app_name}:"
|
||||
transfer_link: Acces transfer request
|
||||
no_user_transfer_text: "In order to accept or refuse the request you must have an account:"
|
||||
no_user_transfer_link: Create an account on %{app_name}
|
||||
transfert_multiple: "%{sender} sends you a transfer request for %{count} files."
|
||||
|
|
|
@ -2,8 +2,8 @@ fr:
|
|||
dossier_mailer:
|
||||
notify_transfer:
|
||||
subject: Vous avez une demande de transfert en attente.
|
||||
transfer_text: "Accéder à la demande de transfert en cliquant sur le lien suivant :"
|
||||
transfer_link: demande de transfert
|
||||
transfer_text: "Afin de pouvoir accepter ou refuser la demande vous devez vous connectez sur %{app_name} :"
|
||||
transfer_link: accéder à la demande de transfert
|
||||
no_user_transfer_text: "Afin de pouvoir accepter ou refuser la demande vous devez avoir un compte :"
|
||||
no_user_transfer_link: se créer un compte sur %{app_name}
|
||||
transfert_multiple: "%{sender} vous adresse une demande de transfert pour %{count} dossiers."
|
||||
|
|
|
@ -333,7 +333,7 @@ RSpec.describe DossierMailer, type: :mailer do
|
|||
dossier_transfer.update!(email: user_2.email)
|
||||
end
|
||||
it 'includes a direct URL to transfers' do
|
||||
expect(subject.body).to include('Accéder à la demande de transfert en cliquant sur le lien suivant :')
|
||||
expect(subject.body).to include('Afin de pouvoir accepter ou refuser la demande vous devez vous connectez sur')
|
||||
expect(subject.body).to include(dossiers_url(statut: 'dossiers-transferes', host: ENV.fetch("APP_HOST_LEGACY")))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue