~cytrogen/masto-fe

ref: d7fcd70023d481cb6a53aef7a58dabfd6a2fa7b2 masto-fe/app/views/auth/registrations/rules.html.haml -rw-r--r-- 1.1 KiB
d7fcd700 — Claire Merge commit '2016c5d912f400ae98ee03ce269112de2f9ec62d' into glitch-soc/merge-upstream 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- content_for :page_title do
  = t('auth.register')

- content_for :header_tags do
  = render partial: 'shared/og', locals: { description: description_for_sign_up(@invite) }

.simple_form
  = render 'auth/shared/progress', stage: 'rules'

  - 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)

  %ol.rules-list
    - @rules.each do |rule|
      %li
        .rules-list__text= rule.text

  .stacked-actions
    - 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'
    = link_to t('auth.rules.back'), root_path, class: 'button button-tertiary'

.form-footer= render 'auth/shared/links'