demarches-normaliennes/app/views/devise_mailer/confirmation_instructions.en.html.haml
2021-08-26 17:53:59 +02:00

21 lines
882 B
Text

-# ugly hack to know if the mail is creation confirmation or a password change confirmation
- if @user.unconfirmed_email.nil?
- content_for(:title, 'Activate account')
%p= t(:greeting, scope: [:layouts, :signature])
%p
You have entered your details to create an account on #{APPLICATION_NAME}. To confirm your email and finish creating your account, select the following link:
- link = confirmation_url(@user, confirmation_token: @token, procedure_id: @procedure&.id)
= link_to(link, link)
- else
- content_for(:title, "Change email address")
%p= t(:greeting, scope: [:layouts, :signature])
%p
To confirm your account email change on #{APPLICATION_NAME}, select the following link:
= link_to(confirmation_url(@user, confirmation_token: @token), confirmation_url(@user, confirmation_token: @token))
= render partial: "layouts/mailers/signature"