Skip to content

Commit

Permalink
Fixe le lien non cliquable dans les emails lors de l'ajout d'un instr…
Browse files Browse the repository at this point in the history
…ucteur par l'admin
  • Loading branch information
kara22 committed Feb 18, 2025
1 parent c12440c commit d63cad9
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
%p= t(:hello, scope: [:views, :shared, :greetings])

%p
- number_of_groups = @group.procedure.groupe_instructeurs.many? ? 'many_groups' : 'one_group'
= t(".email_body.#{number_of_groups}",
= t(".email_body.html",
count: @group.procedure.groupe_instructeurs.count,
groupe: @group.label,
email: @current_instructeur_email,
procedure: @group.procedure.libelle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
%p= t(:hello, scope: [:views, :shared, :greetings])

%p
- number_of_groups = @group.procedure.groupe_instructeurs.many? ? 'many_groups' : 'one_group'
= t(".email_body.#{number_of_groups}",
= t(".email_body.html",
count: @group.procedure.groupe_instructeurs.count,
groupe: @group.label,
email: @current_instructeur_email,
procedure: @group.procedure.libelle,
Expand All @@ -13,7 +13,7 @@
%strong #{@instructeur.email}.

%p
Pour l’activer, cliquez sur le lien suivant : 
Pour l’activer, cliquez sur le lien suivant :
= link_to(users_activate_url(token: @reset_password_token), users_activate_url(token: @reset_password_token))

%p
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ en:
groupe_instructeur_mailer:
notify_added_instructeurs:
email_body:
one_group: "You were assigned to the procedure <a href='%{procedure_url}'>%{procedure}</a> by %{email}."
many_groups: "You were assigned to the group %{groupe} by %{email}, in charge of procedure <a href='%{procedure_url}'>%{procedure}</a>."
html:
one: "You were assigned to the procedure <a href=\"%{procedure_url}\">%{procedure}</a> by %{email}."
other: "You were assigned to the group %{groupe} by %{email}, in charge of procedure <a href=\"%{procedure_url}\">%{procedure}</a>."
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ fr:
groupe_instructeur_mailer:
notify_added_instructeurs:
email_body:
one_group: "Vous avez été affecté(e) à la démarche <a href='%{procedure_url}'>%{procedure}</a> par %{email}."
many_groups: "Vous avez été ajouté(e) au groupe %{groupe} par %{email}, en charge de la démarche <a href='%{procedure_url}'>%{procedure}</a>."
html:
one: "Vous avez été affecté(e) à la démarche <a href=\"%{procedure_url}\">%{procedure}</a> par %{email}."
other: "Vous avez été ajouté(e) au groupe %{groupe} par %{email}, en charge de la démarche <a href=\"%{procedure_url}\">%{procedure}</a>."
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ en:
instructeur_mailer:
confirm_and_notify_added_instructeur:
email_body:
one_group: "You were assigned to the procedure <a href='%{procedure_url}'>%{procedure}</a> by %{email}."
many_groups: "You were assigned to the group %{groupe} by %{email}, in charge of procedure <a href='%{procedure_url}'>%{procedure}</a>."
html:
one: "You were assigned to the procedure <a href=\"%{procedure_url}\">%{procedure}</a> by %{email}."
other: "You were assigned to the group %{groupe} by %{email}, in charge of procedure <a href=\"%{procedure_url}\">%{procedure}</a>."
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ fr:
instructeur_mailer:
confirm_and_notify_added_instructeur:
email_body:
one_group: "Vous avez été affecté(e) à la démarche <a href='%{procedure_url}'>%{procedure}</a> par %{email}."
many_groups: "Vous avez été ajouté(e) au groupe %{groupe} par %{email}, en charge de la démarche <a href='%{procedure_url}'>%{procedure}</a>."
html:
one: "Vous avez été affecté(e) à la démarche <a href=\"%{procedure_url}\">%{procedure}</a> par %{email}."
other: "Vous avez été ajouté(e) au groupe %{groupe} par %{email}, en charge de la démarche <a href=\"%{procedure_url}\">%{procedure}</a>."

0 comments on commit d63cad9

Please sign in to comment.