5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 04:06:21 +00:00
panel/app/views/moderation_queue/_instances.haml

32 lines
1.3 KiB
Text
Raw Normal View History

- form_id = 'instance_moderation_action_on_several'
%section
2024-03-04 18:10:20 +00:00
= render 'components/select_all_container', path: site_instance_moderations_action_on_several_path, form_id: form_id
.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
.col-12
- if instance_moderations.count.zero?
%h4= t('moderation_queue.nothing')
- 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
%hr
%div
%h3.mt-5= t('moderation_queue.instances.title')
%lead= t('moderation_queue.instances.description')
= 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')