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.

34 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-wrapper
  13. %table.table
  14. %thead
  15. %tr
  16. %th
  17. %th= t('followers.domain')
  18. %th= t('followers.followers_count')
  19. %tbody
  20. - @domains.each do |domain|
  21. %tr
  22. %td
  23. = check_box_tag 'select[]', domain.domain, false, disabled: !@account.locked? unless domain.domain.nil?
  24. %td
  25. %samp= domain.domain.presence || Rails.configuration.x.local_domain
  26. %td= number_with_delimiter domain.accounts_from_domain
  27. .action-pagination
  28. .actions
  29. = button_tag t('followers.purge'), type: :submit, class: 'button', disabled: !@account.locked?
  30. = paginate @domains