mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 23:36:21 +00:00
feat: filtros y acciones para comentarios
This commit is contained in:
parent
3967a63163
commit
b201c3de18
3 changed files with 18 additions and 16 deletions
|
@ -1,3 +1,2 @@
|
|||
= render 'components/dropdown_item', text: t('.submenu_pause'), path: '/'
|
||||
= render 'components/dropdown_item', text: t('.submenu_accept'), path: '/'
|
||||
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/'
|
||||
- ActivityPub.events.each do |event|
|
||||
= render 'components/dropdown_button', form_id: form_id, text: t(".submenu_#{event}"), name: 'activity_pub_action', value: event
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.d-flex.py-2
|
||||
= render 'components/dropdown', text: t('.text_checked') do
|
||||
= render 'components/comments_checked_submenu'
|
||||
= render 'components/comments_checked_submenu', form_id: form_id
|
||||
|
||||
= render 'components/dropdown', text: t('.text_show') do
|
||||
= render 'components/comments_show_submenu', activity_pubs: activity_pubs
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
%form{ action: site_activity_pubs_action_on_several_path, method: :post, data: { controller: 'select-all' } }
|
||||
.row.no-gutters.pt-2
|
||||
.col-1.d-flex.align-items-center
|
||||
= render 'components/select_all', id: 'select-all-comments'
|
||||
.col-md-9
|
||||
-# Filtros
|
||||
= render 'components/comments_filters', activity_pubs: moderation_queue
|
||||
- form_id = 'activity_pub_action_on_several'
|
||||
|
||||
- if moderation_queue.count.zero?
|
||||
%h4= t('moderation_queue.nothing')
|
||||
- moderation_queue.each do |activity_pub|
|
||||
- cache [activity_pub, activity_pub.object, activity_pub.actor] do
|
||||
= render 'components/select_all_container', path: site_activity_pubs_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: 'select-all-comments', form_id: form_id
|
||||
.col-md-9
|
||||
-# Filtros
|
||||
= render 'components/comments_filters', activity_pubs: moderation_queue, form_id: form_id
|
||||
.col-12
|
||||
- if moderation_queue.count.zero?
|
||||
%h4= t('moderation_queue.nothing')
|
||||
- moderation_queue.each do |activity_pub|
|
||||
-# cache [activity_pub, activity_pub.object, activity_pub.actor] do
|
||||
%hr
|
||||
= render 'comment', comment: activity_pub.object.content, profile: activity_pub.actor.content, activity_pub: activity_pub
|
||||
= render 'comment', comment: activity_pub.object.content, profile: activity_pub.actor.content, activity_pub: activity_pub, form_id: form_id
|
||||
|
|
Loading…
Reference in a new issue