_status.html.haml 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. - if !user.confirmed?
  2. .flash-message.warning
  3. = t('auth.status.confirming')
  4. = link_to t('auth.didnt_get_confirmation'), new_user_confirmation_path
  5. - elsif !user.approved?
  6. .flash-message.warning
  7. = t('auth.status.pending')
  8. - elsif user.account.moved_to_account_id.present?
  9. .flash-message.warning
  10. = t('auth.status.redirecting_to', acct: user.account.moved_to_account.pretty_acct)
  11. = link_to t('migrations.cancel'), settings_migration_path
  12. %h3= t('auth.status.account_status')
  13. %p.hint
  14. - if user.account.suspended?
  15. %span.negative-hint= t('user_mailer.warning.explanation.suspend')
  16. - elsif user.disabled?
  17. %span.negative-hint= t('user_mailer.warning.explanation.disable')
  18. - elsif user.account.silenced?
  19. %span.warning-hint= t('user_mailer.warning.explanation.silence')
  20. - else
  21. %span.positive-hint= t('auth.status.functional')
  22. = render partial: 'account_warning', collection: strikes
  23. - if user.account.strikes.exists?
  24. %hr.spacer/
  25. %p.muted-hint
  26. = link_to t('auth.status.view_strikes'), disputes_strikes_path
  27. %hr.spacer/