5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 04:36:21 +00:00
panel/app/views/devise/mailer/invitation_instructions.text.haml
f 7cc7f2bfb7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Merge branch 'issue-2123' into panel.sutty.nl
2023-03-23 16:25:41 -03:00

23 lines
819 B
Text

- site = @resource.roles.where(temporal: true).last&.site
= t('devise.mailer.invitation_instructions.hello', email: @resource.email)
\
= t('devise.mailer.invitation_instructions.someone_invited_you',
url: site.hostname)
\
= site.title
\
= site.description
\
- if @resource.created_by_invite? && !@resource.invitation_accepted?
= accept_invitation_url(@resource, invitation_token: @token, change_locale_to: @resource.lang)
\
- 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'))
\
= t('devise.mailer.invitation_instructions.ignore')
- else
= root_url(change_locale_to: @resource.lang)
= t('devise.mailer.invitation_instructions.sign_in')