2023-03-23 18:42:20 +00:00
|
|
|
- site = @resource.roles.where(temporal: true).last&.site
|
2019-09-24 23:14:25 +00:00
|
|
|
|
|
|
|
%p= t('devise.mailer.invitation_instructions.hello',
|
|
|
|
email: @resource.email)
|
|
|
|
%p= t('devise.mailer.invitation_instructions.someone_invited_you',
|
|
|
|
url: site.hostname)
|
|
|
|
|
|
|
|
%h1= site.title
|
|
|
|
%p= site.description
|
|
|
|
|
2023-04-24 20:21:24 +00:00
|
|
|
- if @resource.needs_invitation_link?
|
2023-03-20 20:22:40 +00:00
|
|
|
%p= link_to t('devise.mailer.invitation_instructions.accept'),
|
2023-03-27 16:40:52 +00:00
|
|
|
accept_invitation_url(@resource, invitation_token: @token, change_locale_to: @resource.lang)
|
2019-09-24 23:14:25 +00:00
|
|
|
|
2023-03-20 20:22:40 +00:00
|
|
|
- if @resource.invitation_due_at
|
|
|
|
%p= t('devise.mailer.invitation_instructions.accept_until',
|
|
|
|
due_date: l(@resource.invitation_due_at,
|
|
|
|
format: :'devise.mailer.invitation_instructions.accept_until_format'))
|
2019-09-24 23:14:25 +00:00
|
|
|
|
2023-03-20 20:22:40 +00:00
|
|
|
%p= t('devise.mailer.invitation_instructions.ignore')
|
2023-04-24 20:44:04 +00:00
|
|
|
- elsif !@resource.confirmed? && @resource.confirmation_token
|
2023-04-24 22:00:23 +00:00
|
|
|
= confirmation_url(@resource, confirmation_token: @resource.confirmation_token, change_locale_to: @resource.lang)
|
2023-03-20 20:22:40 +00:00
|
|
|
- else
|
|
|
|
%p= link_to t('devise.mailer.invitation_instructions.sign_in'), root_url
|