logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

index.html.haml (2461B)


  1. - content_for :header_tags do
  2. = javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
  3. - content_for :page_title do
  4. = t('admin.statuses.title')
  5. .back-link
  6. = link_to admin_account_path(@account.id) do
  7. %i.fa.fa-chevron-left.fa-fw
  8. = t('admin.statuses.back_to_account')
  9. .filters
  10. .filter-subset
  11. %strong= t('admin.statuses.media.title')
  12. %ul
  13. %li= link_to t('admin.statuses.no_media'), admin_account_statuses_path(@account.id, current_params.merge(media: nil)), class: !params[:media] && 'selected'
  14. %li= link_to t('admin.statuses.with_media'), admin_account_statuses_path(@account.id, current_params.merge(media: true)), class: params[:media] && 'selected'
  15. - if @statuses.empty?
  16. .accounts-grid
  17. = render 'accounts/nothing_here'
  18. - else
  19. = form_for(@form, url: admin_account_statuses_path(@account.id)) do |f|
  20. = hidden_field_tag :page, params[:page]
  21. = hidden_field_tag :media, params[:media]
  22. .batch-form-box
  23. .batch-checkbox-all
  24. = check_box_tag :batch_checkbox_all, nil, false
  25. = f.select :action, Form::StatusBatch::ACTION_TYPE.map{|action| [t("admin.statuses.batch.#{action}"), action]}
  26. = f.submit t('admin.statuses.execute'), data: { confirm: t('admin.reports.are_you_sure') }, class: 'button'
  27. .media-spoiler-toggle-buttons
  28. .media-spoiler-show-button.button= t('admin.statuses.media.show')
  29. .media-spoiler-hide-button.button= t('admin.statuses.media.hide')
  30. - @statuses.each do |status|
  31. .account-status{ data: { id: status.id } }
  32. .batch-checkbox
  33. = f.check_box :status_ids, { multiple: true, include_hidden: false }, status.id
  34. .activity-stream.activity-stream-headless
  35. .entry= render 'stream_entries/simple_status', status: status
  36. .account-status__actions
  37. - unless status.media_attachments.empty?
  38. = link_to admin_account_status_path(@account.id, status, current_params.merge(status: { sensitive: !status.sensitive })), method: :patch, class: 'icon-button nsfw-button', title: t("admin.reports.nsfw.#{!status.sensitive}") do
  39. = fa_icon status.sensitive? ? 'eye' : 'eye-slash'
  40. = link_to admin_account_status_path(@account.id, status), method: :delete, class: 'icon-button trash-button', title: t('admin.reports.delete'), data: { confirm: t('admin.reports.are_you_sure') }, remote: true do
  41. = fa_icon 'trash'
  42. = paginate @statuses