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

37 lines
1.8 KiB

  1. - content_for :header_tags do
  2. = javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
  3. - content_for :page_title do
  4. = t('admin.statuses.title')
  5. \-
  6. = "@#{@account.acct}"
  7. .filters
  8. .filter-subset
  9. %strong= t('admin.statuses.media.title')
  10. %ul
  11. %li= link_to t('admin.statuses.no_media'), admin_account_statuses_path(@account.id, current_params.merge(media: nil)), class: !params[:media] && 'selected'
  12. %li= link_to t('admin.statuses.with_media'), admin_account_statuses_path(@account.id, current_params.merge(media: true)), class: params[:media] && 'selected'
  13. .back-link
  14. = link_to admin_account_path(@account.id) do
  15. = fa_icon 'chevron-left fw'
  16. = t('admin.statuses.back_to_account')
  17. %hr.spacer/
  18. = form_for(@form, url: admin_account_statuses_path(@account.id)) do |f|
  19. = hidden_field_tag :page, params[:page]
  20. = hidden_field_tag :media, params[:media]
  21. .batch-table
  22. .batch-table__toolbar
  23. %label.batch-table__toolbar__select.batch-checkbox-all
  24. = check_box_tag :batch_checkbox_all, nil, false
  25. .batch-table__toolbar__actions
  26. = f.button safe_join([fa_icon('eye-slash'), t('admin.statuses.batch.nsfw_on')]), name: :nsfw_on, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
  27. = f.button safe_join([fa_icon('eye'), t('admin.statuses.batch.nsfw_off')]), name: :nsfw_off, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
  28. = f.button safe_join([fa_icon('trash'), t('admin.statuses.batch.delete')]), name: :delete, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
  29. .batch-table__body
  30. = render partial: 'admin/reports/status', collection: @statuses, locals: { f: f }
  31. = paginate @statuses