2023-03-23 18:42:20 +00:00
|
|
|
- site = @resource.roles.where(temporal: true).last&.site
|
2019-09-24 23:14:25 +00:00
|
|
|
|
|
|
|
= t('devise.mailer.invitation_instructions.hello', email: @resource.email)
|
|
|
|
\
|
|
|
|
= t('devise.mailer.invitation_instructions.someone_invited_you',
|
|
|
|
url: site.hostname)
|
|
|
|
\
|
|
|
|
= site.title
|
|
|
|
\
|
|
|
|
= site.description
|
|
|
|
\
|
2023-03-23 18:47:06 +00:00
|
|
|
- if @resource.created_by_invite? && !@resource.invitation_accepted?
|
2023-03-20 20:35:13 +00:00
|
|
|
= accept_invitation_url(@resource, invitation_token: @token, change_locale_to: @resource.lang)
|
2023-03-20 20:22:40 +00:00
|
|
|
\
|
|
|
|
- if @resource.invitation_due_at
|
|
|
|
= t('devise.mailer.invitation_instructions.accept_until',
|
|
|
|
due_date: l(@resource.invitation_due_at,
|
|
|
|
format: :'devise.mailer.invitation_instructions.accept_until_format'))
|
2023-03-20 20:22:40 +00:00
|
|
|
\
|
|
|
|
= t('devise.mailer.invitation_instructions.ignore')
|
2023-03-20 20:22:40 +00:00
|
|
|
- else
|
|
|
|
= root_url(change_locale_to: @resource.lang)
|
|
|
|
= t('devise.mailer.invitation_instructions.sign_in')
|