5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 14:16:22 +00:00
panel/app/views/devise/mailer/invitation_instructions.text.haml

26 lines
966 B
Text
Raw Permalink Normal View History

- 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
\
- if @resource.needs_invitation_link?
= 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')
- 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)
- else
= root_url(change_locale_to: @resource.lang)
= t('devise.mailer.invitation_instructions.sign_in')