rules.html.haml 1.1 KB

1234567891011121314151617181920212223242526272829
  1. - content_for :page_title do
  2. = t('auth.register')
  3. - content_for :header_tags do
  4. = render partial: 'shared/og', locals: { description: description_for_sign_up(@invite) }
  5. .simple_form
  6. = render 'auth/shared/progress', stage: 'rules'
  7. - if @invite.present? && @invite.autofollow?
  8. %h1.title= t('auth.rules.title_invited')
  9. %p.lead.invited-by= t('auth.rules.invited_by', domain: site_hostname)
  10. = render 'application/card', account: @invite.user.account, compact: true
  11. %p.lead= t('auth.rules.preamble_invited', domain: site_hostname)
  12. - else
  13. %h1.title= t('auth.rules.title')
  14. %p.lead= t('auth.rules.preamble', domain: site_hostname)
  15. %ol.rules-list
  16. - @rules.each do |rule|
  17. %li
  18. .rules-list__text= rule.text
  19. .stacked-actions
  20. - accept_path = @invite_code.present? ? public_invite_url(invite_code: @invite_code, accept: @accept_token) : new_user_registration_path(accept: @accept_token)
  21. = link_to t('auth.rules.accept'), accept_path, class: 'button'
  22. = link_to t('auth.rules.back'), root_path, class: 'button button-tertiary'
  23. .form-footer= render 'auth/shared/links'