about summary refs log tree commit diff
path: root/app/views/admin/statuses/index.html.haml
blob: 865464c72c3a2f7facb75dae4365c05ad41f9c9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
- content_for :page_title do
  = t('admin.statuses.title')
  \-
  = "@#{@account.acct}"

.filters
  .filter-subset
    %strong= t('admin.statuses.media.title')
    %ul
      %li= filter_link_to t('generic.all'), media: nil, id: nil
      %li= filter_link_to t('admin.statuses.with_media'), media: '1'
  .back-link
    - 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')

%hr.spacer/

= 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?

  .batch-table
    .batch-table__toolbar
      %label.batch-table__toolbar__select.batch-checkbox-all
        = check_box_tag :batch_checkbox_all, nil, false
      .batch-table__toolbar__actions
        - 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') }
    .batch-table__body
      - if @statuses.empty?
        = nothing_here 'nothing-here--under-tabs'
      - else
        = render partial: 'admin/reports/status', collection: @statuses, locals: { f: f }

= paginate @statuses