index.html.haml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. - content_for :page_title do
  2. = t('admin.statuses.title')
  3. \-
  4. @#{@account.pretty_acct}
  5. .filters
  6. .filter-subset
  7. %strong= t('admin.statuses.media.title')
  8. %ul
  9. %li= filter_link_to t('generic.all'), media: nil, id: nil
  10. %li= filter_link_to t('admin.statuses.with_media'), media: '1'
  11. .back-link
  12. - if params[:report_id]
  13. = link_to admin_report_path(params[:report_id].to_i) do
  14. = fa_icon 'chevron-left fw'
  15. = t('admin.statuses.back_to_report')
  16. - else
  17. = link_to admin_account_path(@account.id) do
  18. = fa_icon 'chevron-left fw'
  19. = t('admin.statuses.back_to_account')
  20. %hr.spacer/
  21. = form_for(@status_batch_action, url: batch_admin_account_statuses_path(@account.id)) do |f|
  22. = hidden_field_tag :page, params[:page] || 1
  23. - Admin::StatusFilter::KEYS.each do |key|
  24. = hidden_field_tag key, params[key] if params[key].present?
  25. .batch-table
  26. .batch-table__toolbar
  27. %label.batch-table__toolbar__select.batch-checkbox-all
  28. = check_box_tag :batch_checkbox_all, nil, false
  29. .batch-table__toolbar__actions
  30. - unless @statuses.empty?
  31. = 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') }
  32. .batch-table__body
  33. - if @statuses.empty?
  34. = nothing_here 'nothing-here--under-tabs'
  35. - else
  36. = render partial: 'admin/reports/status', collection: @statuses, locals: { f: f }
  37. = paginate @statuses