mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 06:36:22 +00:00
fix: creados componentes de filtros para comentarios, cuentas e instancias
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
47de966f69
commit
111f2d6503
14 changed files with 79 additions and 37 deletions
3
app/views/components/_comments_checked_submenu.haml
Normal file
3
app/views/components/_comments_checked_submenu.haml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
= 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: '/'
|
6
app/views/components/_comments_filters.haml
Normal file
6
app/views/components/_comments_filters.haml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.d-flex.py-2
|
||||||
|
= render 'components/dropdown', text: t('.text_checked') do
|
||||||
|
= render 'components/comments_checked_submenu'
|
||||||
|
|
||||||
|
= render 'components/dropdown', text: t('.text_show') do
|
||||||
|
= render 'components/comments_show_submenu'
|
4
app/views/components/_comments_show_submenu.haml
Normal file
4
app/views/components/_comments_show_submenu.haml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
= 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_report'), path: '/'
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/'
|
3
app/views/components/_instances_checked_submenu.haml
Normal file
3
app/views/components/_instances_checked_submenu.haml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_case'), path: '/'
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_allow'), path: '/'
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/'
|
6
app/views/components/_instances_filters.haml
Normal file
6
app/views/components/_instances_filters.haml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.d-flex.py-2
|
||||||
|
= render 'components/dropdown', text: t('.text_checked') do
|
||||||
|
= render 'components/instances_checked_submenu'
|
||||||
|
|
||||||
|
= render 'components/dropdown', text: t('.text_show') do
|
||||||
|
= render 'components/comments_show_submenu'
|
2
app/views/components/_instances_show_submenu.haml
Normal file
2
app/views/components/_instances_show_submenu.haml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_allow'), path: '/'
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/'
|
4
app/views/components/_profiles_checked_submenu.haml
Normal file
4
app/views/components/_profiles_checked_submenu.haml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
= 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: '/'
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_block'), path: '/'
|
6
app/views/components/_profiles_filters.haml
Normal file
6
app/views/components/_profiles_filters.haml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.d-flex.py-2
|
||||||
|
= render 'components/dropdown', text: t('.text_checked') do
|
||||||
|
= render 'components/profiles_checked_submenu'
|
||||||
|
|
||||||
|
= render 'components/dropdown', text: t('.text_show') do
|
||||||
|
= render 'components/profiles_show_submenu'
|
3
app/views/components/_profiles_show_submenu.haml
Normal file
3
app/views/components/_profiles_show_submenu.haml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_accept'), path: '/'
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/'
|
||||||
|
= render 'components/dropdown_item', text: t('.submenu_block'), path: '/'
|
|
@ -1,12 +1,5 @@
|
||||||
-# Filtros
|
-# Filtros
|
||||||
.d-flex.py-2
|
= render 'components/profiles_filters'
|
||||||
= render 'components/dropdown', text: t('moderation_queue.filter_box.text_checked') do
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_case'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_allow'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
|
|
||||||
= render 'components/dropdown', text: t('moderation_queue.filter_box.text_show') do
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_allow'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
|
|
||||||
|
|
||||||
- @moderation_queue.map{ |c| c['attributedTo'] }.uniq.each do |remote_profile|
|
- @moderation_queue.map{ |c| c['attributedTo'] }.uniq.each do |remote_profile|
|
||||||
= render 'account', profile: remote_profile
|
= render 'account', profile: remote_profile
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-# Filtros
|
-# Filtros
|
||||||
= render 'moderation_queue/filter_box'
|
= render 'components/comments_filters'
|
||||||
|
|
||||||
- moderation_queue.each do |comment|
|
- moderation_queue.each do |comment|
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
-# Filtros
|
-# Filtros
|
||||||
.d-flex.py-2
|
= render 'components/instances_filters'
|
||||||
= render 'components/dropdown', text: t('moderation_queue.filter_box.text_checked') do
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_case'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_allow'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
|
|
||||||
= render 'components/dropdown', text: t('moderation_queue.filter_box.text_show') do
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_allow'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
|
|
||||||
|
|
||||||
- @instances.each do |instance|
|
- @instances.each do |instance|
|
||||||
= render 'moderation_queue/instance', instance: instance
|
= render 'moderation_queue/instance', instance: instance
|
||||||
|
|
||||||
|
|
||||||
-# Botones moderación
|
-# Botones moderación
|
||||||
.d-flex.py-4
|
.d-flex.py-4
|
||||||
- @class = 'btn btn-secondary'
|
- @class = 'btn btn-secondary'
|
||||||
|
|
|
@ -1,15 +1,6 @@
|
||||||
.flex
|
.flex
|
||||||
-# Filtros
|
-# Filtros
|
||||||
.d-flex.py-2
|
= render 'components/comments_filters'
|
||||||
= render 'components/dropdown', text: t('moderation_queue.filter_box.text_checked') do
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_pause'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_accept'), path: '/'
|
|
||||||
= render 'components/dropdown', text: t('moderation_queue.filter_box.text_show') do
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_pause'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_accept'), path: '/'
|
|
||||||
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_report'), path: '/'
|
|
||||||
|
|
||||||
- moderation_queue.each do |comment|
|
- moderation_queue.each do |comment|
|
||||||
= render 'moderation_queue/comment', comment: comment, profile: @remote_profile
|
= render 'moderation_queue/comment', comment: comment, profile: @remote_profile
|
||||||
|
|
|
@ -1,4 +1,39 @@
|
||||||
es:
|
es:
|
||||||
|
components:
|
||||||
|
instances_filters:
|
||||||
|
text_show: Ver
|
||||||
|
text_checked: Con los marcados
|
||||||
|
instances_checked_submenu:
|
||||||
|
submenu_case: Moderar caso por caso
|
||||||
|
submenu_allow: Permitir todo
|
||||||
|
submenu_reject: Rechazado
|
||||||
|
instances_show_submenu:
|
||||||
|
submenu_allow: Permitido
|
||||||
|
submenu_reject: Rechazado
|
||||||
|
comments_filters:
|
||||||
|
text_show: Ver
|
||||||
|
text_checked: Con los marcados
|
||||||
|
comments_checked_submenu:
|
||||||
|
submenu_pause: Pausado
|
||||||
|
submenu_accept: Aceptado
|
||||||
|
submenu_reject: Rechazado
|
||||||
|
comments_show_submenu:
|
||||||
|
submenu_pause: Pausado
|
||||||
|
submenu_accept: Aceptado
|
||||||
|
submenu_report: Reportado
|
||||||
|
submenu_reject: Rechazado
|
||||||
|
profiles_filters:
|
||||||
|
text_show: Ver
|
||||||
|
text_checked: Con los marcados
|
||||||
|
profiles_checked_submenu:
|
||||||
|
submenu_pause: Pausado
|
||||||
|
submenu_accept: Aceptado
|
||||||
|
submenu_reject: Rechazado
|
||||||
|
submenu_block: Bloqueado
|
||||||
|
profiles_show_submenu:
|
||||||
|
submenu_accept: Aceptado
|
||||||
|
submenu_block: Bloqueado
|
||||||
|
submenu_reject: Rechazado
|
||||||
moderation_queue:
|
moderation_queue:
|
||||||
index:
|
index:
|
||||||
title: Actividades de moderación
|
title: Actividades de moderación
|
||||||
|
@ -25,15 +60,6 @@ es:
|
||||||
text_accept: Aceptar Publicación
|
text_accept: Aceptar Publicación
|
||||||
text_reply: Responder
|
text_reply: Responder
|
||||||
text_report: Reportar
|
text_report: Reportar
|
||||||
filter_box:
|
|
||||||
text_show: Ver
|
|
||||||
text_checked: Con los marcados
|
|
||||||
submenu_pause: Pausado
|
|
||||||
submenu_reject: Rechazado
|
|
||||||
submenu_accept: Aceptado
|
|
||||||
submenu_report: Reportado
|
|
||||||
submenu_case: Moderar caso por caso
|
|
||||||
submenu_allow: Permitir todo
|
|
||||||
instances_button_box:
|
instances_button_box:
|
||||||
text_check: Moderar caso por caso
|
text_check: Moderar caso por caso
|
||||||
text_allow: Permitir todo
|
text_allow: Permitir todo
|
||||||
|
@ -44,6 +70,9 @@ es:
|
||||||
block_lists: Listas de bloqueo
|
block_lists: Listas de bloqueo
|
||||||
custom_block: Lista personalizada de bloqueo
|
custom_block: Lista personalizada de bloqueo
|
||||||
submit: Guardar lista de bloqueo
|
submit: Guardar lista de bloqueo
|
||||||
|
comments_filter_box:
|
||||||
|
text_show: Ver
|
||||||
|
text_checked: Con los marcados
|
||||||
dark: Oscuro
|
dark: Oscuro
|
||||||
es: Castellano
|
es: Castellano
|
||||||
en: English
|
en: English
|
||||||
|
|
Loading…
Reference in a new issue