5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 04:36:20 +00:00

fix: creados componentes de filtros para comentarios, cuentas e instancias
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2024-02-09 12:01:04 -03:00
parent 47de966f69
commit 111f2d6503
14 changed files with 79 additions and 37 deletions

View 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: '/'

View 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'

View 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: '/'

View 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: '/'

View 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'

View file

@ -0,0 +1,2 @@
= render 'components/dropdown_item', text: t('.submenu_allow'), path: '/'
= render 'components/dropdown_item', text: t('.submenu_reject'), path: '/'

View 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: '/'

View 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'

View 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: '/'

View file

@ -1,12 +1,5 @@
-# Filtros
.d-flex.py-2
= 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: '/'
= render 'components/profiles_filters'
- @moderation_queue.map{ |c| c['attributedTo'] }.uniq.each do |remote_profile|
= render 'account', profile: remote_profile

View file

@ -1,5 +1,5 @@
-# Filtros
= render 'moderation_queue/filter_box'
= render 'components/comments_filters'
- moderation_queue.each do |comment|

View file

@ -1,17 +1,9 @@
-# Filtros
.d-flex.py-2
= 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: '/'
= render 'components/instances_filters'
- @instances.each do |instance|
= render 'moderation_queue/instance', instance: instance
-# Botones moderación
.d-flex.py-4
- @class = 'btn btn-secondary'

View file

@ -1,15 +1,6 @@
.flex
-# Filtros
.d-flex.py-2
= 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: '/'
= render 'components/comments_filters'
- moderation_queue.each do |comment|
= render 'moderation_queue/comment', comment: comment, profile: @remote_profile

View file

@ -1,4 +1,39 @@
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:
index:
title: Actividades de moderación
@ -25,15 +60,6 @@ es:
text_accept: Aceptar Publicación
text_reply: Responder
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:
text_check: Moderar caso por caso
text_allow: Permitir todo
@ -44,6 +70,9 @@ es:
block_lists: Listas de bloqueo
custom_block: Lista personalizada de bloqueo
submit: Guardar lista de bloqueo
comments_filter_box:
text_show: Ver
text_checked: Con los marcados
dark: Oscuro
es: Castellano
en: English