2017-07-18 14:38:22 +00:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.statuses.title')
|
2018-05-05 21:06:29 +00:00
|
|
|
\-
|
2022-03-22 09:07:11 +00:00
|
|
|
= "@#{@account.pretty_acct}"
|
2017-07-18 14:38:22 +00:00
|
|
|
|
|
|
|
.filters
|
|
|
|
.filter-subset
|
|
|
|
%strong= t('admin.statuses.media.title')
|
|
|
|
%ul
|
2022-01-17 08:41:33 +00:00
|
|
|
%li= filter_link_to t('generic.all'), media: nil, id: nil
|
|
|
|
%li= filter_link_to t('admin.statuses.with_media'), media: '1'
|
2020-04-28 17:39:16 +00:00
|
|
|
.back-link
|
2022-01-17 08:41:33 +00:00
|
|
|
- if params[:report_id]
|
|
|
|
= link_to admin_report_path(params[:report_id].to_i) do
|
|
|
|
= fa_icon 'chevron-left fw'
|
|
|
|
= t('admin.statuses.back_to_report')
|
|
|
|
- else
|
|
|
|
= link_to admin_account_path(@account.id) do
|
|
|
|
= fa_icon 'chevron-left fw'
|
|
|
|
= t('admin.statuses.back_to_account')
|
2018-05-05 21:06:29 +00:00
|
|
|
|
|
|
|
%hr.spacer/
|
|
|
|
|
2022-01-17 08:41:33 +00:00
|
|
|
= form_for(@status_batch_action, url: batch_admin_account_statuses_path(@account.id)) do |f|
|
|
|
|
= 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-18 14:38:22 +00:00
|
|
|
|
2018-05-05 21:06:29 +00:00
|
|
|
.batch-table
|
|
|
|
.batch-table__toolbar
|
|
|
|
%label.batch-table__toolbar__select.batch-checkbox-all
|
2017-07-18 14:38:22 +00:00
|
|
|
= check_box_tag :batch_checkbox_all, nil, false
|
2018-05-05 21:06:29 +00:00
|
|
|
.batch-table__toolbar__actions
|
2022-01-17 08:41:33 +00:00
|
|
|
- unless @statuses.empty?
|
|
|
|
= f.button safe_join([fa_icon('flag'), t('admin.statuses.batch.report')]), name: :report, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
|
2018-05-05 21:06:29 +00:00
|
|
|
.batch-table__body
|
2022-01-17 08:41:33 +00:00
|
|
|
- if @statuses.empty?
|
|
|
|
= nothing_here 'nothing-here--under-tabs'
|
|
|
|
- else
|
|
|
|
= render partial: 'admin/reports/status', collection: @statuses, locals: { f: f }
|
2017-07-18 14:38:22 +00:00
|
|
|
|
|
|
|
= paginate @statuses
|