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

31 lines
1.2 KiB
Text
Raw Normal View History

- form_id = 'instance_moderation_action_on_several'
%section
2024-03-08 16:08:24 +00:00
= render 'components/select_all_container', path: site_instance_moderations_action_on_several_path, form: form_id
.row.no-gutters.pt-2{ data: { controller: 'select-all' } }
.col-1.d-flex.align-items-center
2024-03-08 16:08:24 +00:00
= render 'components/select_all', id: 'instances', form: form_id
.col-11
-# Filtros
2024-03-08 16:08:24 +00:00
= render 'components/instances_filters', instance_moderations: instance_moderations, form: form_id
.col-12
- if instance_moderations.count.zero?
%h4= t('moderation_queue.nothing')
- instance_moderations.each do |instance_moderation|
2024-03-14 14:57:06 +00:00
%hr
= render 'moderation_queue/instance', instance_moderation: instance_moderation, instance: instance_moderation.instance, form: 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')