2017-07-19 00:38:22 +10:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.statuses.title')
|
2018-05-06 07:06:29 +10:00
|
|
|
\-
|
2023-10-25 23:01:00 +11:00
|
|
|
@#{@account.pretty_acct}
|
2017-07-19 00:38:22 +10:00
|
|
|
|
|
|
|
.filters
|
|
|
|
.filter-subset
|
|
|
|
%strong= t('admin.statuses.media.title')
|
|
|
|
%ul
|
2022-01-17 19:41:33 +11:00
|
|
|
%li= filter_link_to t('generic.all'), media: nil, id: nil
|
2024-06-25 17:46:53 +10:00
|
|
|
%li= filter_link_to t('admin.statuses.with_media'), media: true
|
2020-04-29 03:39:16 +10:00
|
|
|
.back-link
|
2022-01-17 19:41:33 +11:00
|
|
|
- if params[:report_id]
|
|
|
|
= link_to admin_report_path(params[:report_id].to_i) do
|
2024-04-24 02:43:49 +10:00
|
|
|
= material_symbol 'chevron_left'
|
2022-01-17 19:41:33 +11:00
|
|
|
= t('admin.statuses.back_to_report')
|
|
|
|
- else
|
|
|
|
= link_to admin_account_path(@account.id) do
|
2024-04-24 02:43:49 +10:00
|
|
|
= material_symbol 'chevron_left'
|
2022-01-17 19:41:33 +11:00
|
|
|
= t('admin.statuses.back_to_account')
|
2018-05-06 07:06:29 +10:00
|
|
|
|
|
|
|
%hr.spacer/
|
|
|
|
|
2024-06-14 19:54:22 +10:00
|
|
|
= form_with model: @status_batch_action, url: batch_admin_account_statuses_path(@account.id) do |f|
|
2022-01-17 19:41:33 +11:00
|
|
|
= hidden_field_tag :page, params[:page] || 1
|
|
|
|
|
|
|
|
- Admin::StatusFilter::KEYS.each do |key|
|
|
|
|
= hidden_field_tag key, params[key] if params[key].present?
|
2017-07-19 00:38:22 +10:00
|
|
|
|
2018-05-06 07:06:29 +10:00
|
|
|
.batch-table
|
|
|
|
.batch-table__toolbar
|
|
|
|
%label.batch-table__toolbar__select.batch-checkbox-all
|
2017-07-19 00:38:22 +10:00
|
|
|
= check_box_tag :batch_checkbox_all, nil, false
|
2018-05-06 07:06:29 +10:00
|
|
|
.batch-table__toolbar__actions
|
2022-01-17 19:41:33 +11:00
|
|
|
- unless @statuses.empty?
|
2024-03-15 22:19:00 +11:00
|
|
|
= f.button safe_join([fa_icon('flag'), t('admin.statuses.batch.report')]),
|
|
|
|
class: 'table-action-link',
|
|
|
|
data: { confirm: t('admin.reports.are_you_sure') },
|
|
|
|
name: :report,
|
|
|
|
type: :submit
|
2018-05-06 07:06:29 +10:00
|
|
|
.batch-table__body
|
2022-01-17 19:41:33 +11:00
|
|
|
- if @statuses.empty?
|
|
|
|
= nothing_here 'nothing-here--under-tabs'
|
|
|
|
- else
|
|
|
|
= render partial: 'admin/reports/status', collection: @statuses, locals: { f: f }
|
2017-07-19 00:38:22 +10:00
|
|
|
|
|
|
|
= paginate @statuses
|