闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. - content_for :page_title do
  2. = t('settings.followers')
  3. = form_tag settings_follower_domains_path, method: :patch, class: 'table-form' do
  4. - unless @account.locked?
  5. .warning
  6. %strong
  7. = fa_icon('warning')
  8. = t('followers.unlocked_warning_title')
  9. = t('followers.unlocked_warning_html', lock_link: link_to(t('followers.lock_link'), settings_profile_url))
  10. %p= t('followers.explanation_html')
  11. %p= t('followers.true_privacy_html')
  12. %table.table
  13. %thead
  14. %tr
  15. %th
  16. %th= t('followers.domain')
  17. %th= t('followers.followers_count')
  18. %tbody
  19. - @domains.each do |domain|
  20. %tr
  21. %td
  22. = check_box_tag 'select[]', domain.domain, false, disabled: !@account.locked? unless domain.domain.nil?
  23. %td
  24. %samp= domain.domain.presence || Rails.configuration.x.local_domain
  25. %td= number_with_delimiter domain.accounts_from_domain
  26. .action-pagination
  27. .actions
  28. = button_tag t('followers.purge'), type: :submit, class: 'button', disabled: !@account.locked?
  29. = paginate @domains