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

fix: corregidos filtros desplegables de comentarios, cuentas e instancias #15097
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2024-02-05 14:51:17 -03:00
parent eb9ca6d6f6
commit f995279298
7 changed files with 51 additions and 21 deletions

View file

@ -1,6 +1,13 @@
- filtros_moderation_queue
- botoneras_moderation_queue
= render 'moderation_queue/filter_box', filter_params: @instances_filter_params
.d-flex.py-2.justify-content-center
= 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 'moderation_queue/button_box', btn_params: @profile_btn_params

View file

@ -1,6 +1,15 @@
- filtros_moderation_queue
- botoneras_moderation_queue
= render 'moderation_queue/filter_box', filter_params: @comment_filter_params
.d-flex.py-2.justify-content-center
= 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|
= render 'comment', comment: comment, profile: @remote_profile

View file

@ -1,7 +0,0 @@
-# Componente Filtro
.dropdown.mx-4
%button#dropdownMenuButton.btn.btn-outline-secondary.dropdown-toggle{:type => "button", "data-toggle" => "dropdown", "aria-haspopup" => "true", "aria-expanded" => "false"}
%span= text
.dropdown-menu{"aria-labelledby" => "dropdownMenuButton"}
- menu.each do |subm|
%a.dropdown-item{ href: subm[1] }= subm[0]

View file

@ -1,6 +0,0 @@
-# Componente Caja de Filtros
.d-flex.py-2.justify-content-center
- filter_params.each do |filter, submenu|
= render 'moderation_queue/filter_base', text: filter, menu: submenu

View file

@ -1,6 +1,12 @@
- filtros_moderation_queue
- botoneras_moderation_queue
= render 'moderation_queue/filter_box', filter_params: @instances_filter_params
.d-flex.py-2.justify-content-center
= 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 'moderation_queue/button_box', btn_params: @instances_btn_params

View file

@ -2,7 +2,19 @@
.flex.py-2.mx-2.text-center
- botoneras_moderation_queue
%h4.mb-2= t('.profile_name') + ': ' + remote_profile['name']
.d-flex.py-2.justify-content-center
= 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: '/'
%h4.my-2= t('.profile_name') + ': ' + remote_profile['name']
%h5= t('.profile_id') + ': ' + remote_profile['id']
%h5= t('.profile_published') + ': ' + remote_profile['published'].to_datetime.strftime('%m/%d/%Y')
%h5= t('.profile_summary') + ':'

View file

@ -1,8 +1,17 @@
.flex
%h3.text-center.py-2 Comentarios
- botoneras_moderation_queue
- filtros_moderation_queue
= render 'moderation_queue/filter_box', filter_params: @comment_filter_params
.d-flex.py-2.justify-content-center
= 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|
= render 'moderation_queue/comment', comment: comment, profile: @remote_profile
.row.d-flex.justify-content-center