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.7 KiB

  1. - content_for :page_title do
  2. = t('admin.statuses.title')
  3. \-
  4. = "@#{@account.acct}"
  5. .filters
  6. .filter-subset
  7. %strong= t('admin.statuses.media.title')
  8. %ul
  9. %li= link_to t('admin.statuses.no_media'), admin_account_statuses_path(@account.id, current_params.merge(media: nil)), class: !params[:media] && 'selected'
  10. %li= link_to t('admin.statuses.with_media'), admin_account_statuses_path(@account.id, current_params.merge(media: true)), class: params[:media] && 'selected'
  11. .back-link{ style: 'flex: 1 1 auto; text-align: right' }
  12. = link_to admin_account_path(@account.id) do
  13. = fa_icon 'chevron-left fw'
  14. = t('admin.statuses.back_to_account')
  15. %hr.spacer/
  16. = form_for(@form, url: admin_account_statuses_path(@account.id)) do |f|
  17. = hidden_field_tag :page, params[:page]
  18. = hidden_field_tag :media, params[:media]
  19. .batch-table
  20. .batch-table__toolbar
  21. %label.batch-table__toolbar__select.batch-checkbox-all
  22. = check_box_tag :batch_checkbox_all, nil, false
  23. .batch-table__toolbar__actions
  24. = 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') }
  25. = 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') }
  26. = 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') }
  27. .batch-table__body
  28. = render partial: 'admin/reports/status', collection: @statuses, locals: { f: f }
  29. = paginate @statuses