2024-03-04 17:26:41 +00:00
|
|
|
- form_id = 'instance_moderation_action_on_several'
|
2024-03-04 17:59:17 +00:00
|
|
|
|
2024-02-26 20:37:34 +00:00
|
|
|
%section
|
2024-03-04 17:59:17 +00:00
|
|
|
= form_tag site_instance_moderations_action_on_several_path, id: form_id, method: :patch
|
|
|
|
|
2024-03-04 17:26:41 +00:00
|
|
|
.row.no-gutters.pt-2{ data: { controller: 'select-all' } }
|
|
|
|
.col-1.d-flex.align-items-center
|
|
|
|
= render 'components/select_all', id: 'instances', form_id: form_id
|
|
|
|
.col-11
|
|
|
|
-# Filtros
|
|
|
|
= render 'components/instances_filters', site: site, form_id: form_id
|
2024-02-05 16:03:29 +00:00
|
|
|
|
2024-03-04 17:26:41 +00:00
|
|
|
.col-12
|
|
|
|
- if instance_moderations.count.zero?
|
|
|
|
%h4= t('moderation_queue.nothing')
|
2024-02-26 19:51:33 +00:00
|
|
|
|
2024-03-04 17:26:41 +00:00
|
|
|
- instance_moderations.each do |instance_moderation|
|
|
|
|
- cache [instance_moderation.aasm_state, instance_moderation.instance] do
|
|
|
|
%hr
|
|
|
|
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance, form_id: form_id
|
2024-02-07 17:42:25 +00:00
|
|
|
|
2024-03-04 17:26:41 +00:00
|
|
|
%hr
|
2024-02-26 20:37:34 +00:00
|
|
|
%div
|
2024-02-26 20:03:18 +00:00
|
|
|
%h3.mt-5= t('moderation_queue.instances.title')
|
|
|
|
%lead= t('moderation_queue.instances.description')
|
2024-02-27 19:39:02 +00:00
|
|
|
|
|
|
|
= form_tag site_fediblock_states_action_on_several_path, method: :patch do
|
|
|
|
= render 'components/block_lists', blocklists: fediblock_states
|
|
|
|
= render 'moderation_queue/block_instances_textarea'
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
%button.btn.btn-secondary.mt-3{ type: 'submit' }= t('moderation_queue.instances.submit')
|