5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 23:16:22 +00:00

feat: agregado filtros instancias #15083
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2024-02-05 13:03:29 -03:00
parent c668c3ad3f
commit cfe90c531e
4 changed files with 28 additions and 0 deletions

View file

@ -28,6 +28,7 @@ module ModerationQueueHelper
# text: [texto del botón]
# href: [href del botón]
def filtros_moderation_queue
#filtros de comentarios
@comment_filter_params = {
t('moderation_queue.filter_box.text_checked') =>
[
@ -43,5 +44,20 @@ module ModerationQueueHelper
[t('moderation_queue.filter_box.submenu_report'), '#report']
]
}
#filtros de instancias
@instances_filter_params = {
t('moderation_queue.filter_box.text_checked') =>
[
[t('moderation_queue.filter_box.submenu_case'), '#case_by_case'],
[t('moderation_queue.filter_box.submenu_allow'), '#allow'],
[t('moderation_queue.filter_box.submenu_reject'),'#reject']
],
t('moderation_queue.filter_box.text_show') =>
[
[t('moderation_queue.filter_box.submenu_allow'), '#allow'],
[t('moderation_queue.filter_box.submenu_reject'), '#reject']
]
}
end
end

View file

@ -0,0 +1,4 @@
- filtros_moderation_queue
- botoneras_moderation_queue
= render 'moderation_queue/button_box', btn_params: @profile_btn_params

View file

@ -0,0 +1,6 @@
- filtros_moderation_queue
- botoneras_moderation_queue
= render 'moderation_queue/filter_box', filter_params: @instances_filter_params
= render 'moderation_queue/button_box', btn_params: @instances_btn_params

View file

@ -31,6 +31,8 @@ es:
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