demarches-normaliennes/app/views/devise_mailer/confirmation_instructions.html.haml

22 lines
830 B
Text
Raw Normal View History

-# ugly hack to know if the mail is creation confirmation or a password change confirmation
- if @user.unconfirmed_email.nil?
- content_for(:title, 'Activez votre compte')
2018-05-14 14:21:03 +02:00
2021-08-26 12:40:20 +02:00
%p= t(:greeting, scope: [:layouts, :signature])
2018-05-14 14:21:03 +02:00
%p
Pour activer votre compte sur #{APPLICATION_NAME}, veuillez cliquer sur le lien suivant :
- link = confirmation_url(@user, confirmation_token: @token, procedure_id: @procedure&.id)
= link_to(link, link)
- else
2021-05-26 15:16:30 +02:00
- content_for(:title, "Changement dadresse email")
2021-08-26 12:40:20 +02:00
%p= t(:greeting, scope: [:layouts, :signature])
%p
2021-05-26 15:16:30 +02:00
Pour confirmer votre changement dadresse email, veuillez cliquer sur le lien suivant :
= link_to(confirmation_url(@user, confirmation_token: @token), confirmation_url(@user, confirmation_token: @token))
2018-05-14 14:21:03 +02:00
= render partial: "layouts/mailers/signature"