闭社主体 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.5 KiB

  1. - content_for :page_title do
  2. = t('admin.pending_accounts.title', count: User.pending.count)
  3. - content_for :header_tags do
  4. = javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
  5. = form_for(@form, url: batch_admin_pending_accounts_path) do |f|
  6. = hidden_field_tag :page, params[:page] || 1
  7. .batch-table
  8. .batch-table__toolbar
  9. %label.batch-table__toolbar__select.batch-checkbox-all
  10. = check_box_tag :batch_checkbox_all, nil, false
  11. .batch-table__toolbar__actions
  12. = f.button safe_join([fa_icon('check'), t('admin.accounts.approve')]), name: :approve, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
  13. = f.button safe_join([fa_icon('times'), t('admin.accounts.reject')]), name: :reject, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
  14. .batch-table__body
  15. - if @accounts.empty?
  16. = nothing_here 'nothing-here--under-tabs'
  17. - else
  18. = render partial: 'account', collection: @accounts, locals: { f: f }
  19. = paginate @accounts
  20. %hr.spacer/
  21. %div.action-buttons
  22. %div
  23. = link_to t('admin.accounts.approve_all'), approve_all_admin_pending_accounts_path, method: :post, data: { confirm: t('admin.accounts.are_you_sure') }, class: 'button'
  24. %div
  25. = link_to t('admin.accounts.reject_all'), reject_all_admin_pending_accounts_path, method: :post, data: { confirm: t('admin.accounts.are_you_sure') }, class: 'button button--destructive'