2022-10-05 17:57:33 +01:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('auth.register')
|
|
|
|
|
|
|
|
- content_for :header_tags do
|
2023-04-23 21:35:54 +01:00
|
|
|
= render partial: 'shared/og', locals: { description: description_for_sign_up(@invite) }
|
2022-10-05 17:57:33 +01:00
|
|
|
|
|
|
|
.simple_form
|
2023-04-16 06:01:24 +01:00
|
|
|
= render 'auth/shared/progress', stage: 'rules'
|
|
|
|
|
2023-06-02 17:35:37 +01:00
|
|
|
- if @invite.present? && @invite.autofollow?
|
|
|
|
%h1.title= t('auth.rules.title_invited')
|
|
|
|
%p.lead.invited-by= t('auth.rules.invited_by', domain: site_hostname)
|
|
|
|
= render 'application/card', account: @invite.user.account, compact: true
|
|
|
|
%p.lead= t('auth.rules.preamble_invited', domain: site_hostname)
|
|
|
|
- else
|
|
|
|
%h1.title= t('auth.rules.title')
|
|
|
|
%p.lead= t('auth.rules.preamble', domain: site_hostname)
|
2022-10-05 17:57:33 +01:00
|
|
|
|
|
|
|
%ol.rules-list
|
|
|
|
- @rules.each do |rule|
|
|
|
|
%li
|
|
|
|
.rules-list__text= rule.text
|
2024-03-11 08:57:07 +00:00
|
|
|
.rules-list__hint= rule.hint
|
2022-10-05 17:57:33 +01:00
|
|
|
|
|
|
|
.stacked-actions
|
2022-10-30 18:04:39 +00:00
|
|
|
- accept_path = @invite_code.present? ? public_invite_url(invite_code: @invite_code, accept: @accept_token) : new_user_registration_path(accept: @accept_token)
|
|
|
|
= link_to t('auth.rules.accept'), accept_path, class: 'button'
|
2022-10-05 17:57:33 +01:00
|
|
|
= link_to t('auth.rules.back'), root_path, class: 'button button-tertiary'
|
|
|
|
|
|
|
|
.form-footer= render 'auth/shared/links'
|