mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 15:16:22 +00:00
22 lines
860 B
Text
22 lines
860 B
Text
- site = @resource.roles.where(temporal: true).last&.site
|
|
|
|
%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
|
|
|
|
- if @resource.created_by_invite? && !@resource.invitation_accepted?
|
|
%p= link_to t('devise.mailer.invitation_instructions.accept'),
|
|
accept_invitation_url(@resource, invitation_token: @token, change_locale_to: @resource.lang)
|
|
|
|
- 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'))
|
|
|
|
%p= t('devise.mailer.invitation_instructions.ignore')
|
|
- else
|
|
%p= link_to t('devise.mailer.invitation_instructions.sign_in'), root_url
|