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

21 lines
906 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(:hello, scope: [:views, :shared, :greetings])
%p
You have entered your details to create an account on #{Current.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(:hello, scope: [:views, :shared, :greetings])
%p
To confirm your account email change on #{Current.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"