-# 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') %p= t(:hello, scope: [:views, :shared, :greetings]) %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 - content_for(:title, "Changement d’adresse email") %p= t(:hello, scope: [:views, :shared, :greetings]) %p Pour confirmer votre changement d’adresse email, veuillez cliquer sur le lien suivant : = link_to(confirmation_url(@user, confirmation_token: @token), confirmation_url(@user, confirmation_token: @token)) = render partial: "layouts/mailers/signature"