show.html.haml 1.3 KB

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