5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 09:46:23 +00:00

fix: creados componentes botoneras de comentarios, instancias y cuentas, y movidos a app/views/components
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2024-02-09 14:45:12 -03:00
parent 31294ccbc7
commit 3f288ab6e4
14 changed files with 53 additions and 57 deletions

View file

@ -0,0 +1,3 @@
-# Componente Botón general Moderación
%button.btn.btn-lg.mx-2{ href: href, class: local_assigns[:class] }= text

View file

@ -1,2 +1,3 @@
-# Componente Checkbox
.custom-control.custom-checkbox .custom-control.custom-checkbox
%input{ type: 'checkbox', id: '', class: '' } %input{ type: 'checkbox', id: '', class: '' }

View file

@ -0,0 +1,9 @@
-# Componente Botonera de Comentarios
.d-flex.py-4
- btn_class = 'btn-secondary'
= render 'components/btn_base', text: t('.text_pause'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_reject'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_accept'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_reply'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_report'), class: btn_class, href: ''

View file

@ -0,0 +1,6 @@
-# Componente botonera de moderación de Instancias
- btn_class = 'btn btn-secondary'
= render 'components/btn_base', text: t('.text_check'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_allow'), class: btn_class, href: ''
= render 'components/btn_base', text: t('.text_deny'), class: btn_class, href: ''

View file

@ -0,0 +1,7 @@
-# Componente Botonera de Moderación de Cuentas (Remote_profile)
- @class = 'btn-secondary'
= render 'components/btn_base', text: t('.text_approve'), class: @class, href: ''
= render 'components/btn_base', text: t('.text_check'), class: @class, href: ''
= render 'components/btn_base', text: t('.text_deny'), class: @class, href: ''
= render 'components/btn_base', text: t('.text_report'), class: @class, href: ''

View file

@ -6,9 +6,5 @@
-# Botones de Moderación -# Botones de Moderación
.d-flex.py-4 .d-flex.py-4
- @class = 'btn-secondary' = render 'components/profiles_btn_box'
= render 'moderation_queue/btn_base', text: t('moderation_queue.profile_button_box.text_approve'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.profile_button_box.text_check'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.profile_button_box.text_deny'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.profile_button_box.text_report'), class: @class, href: ''

View file

@ -1,3 +0,0 @@
-# Componente Botón general Moderación
%button.btn.btn-lg.mx-2{ href: href, class: @class }= text

View file

@ -6,10 +6,4 @@
= render 'comment', comment: comment, profile: @remote_profile = render 'comment', comment: comment, profile: @remote_profile
-# Botones moderación -# Botones moderación
.d-flex.py-4 = render 'components/comments_btn_box'
- @class = 'btn-secondary'
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_pause'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_reject'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_accept'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_reply'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_report'), class: @class, href: ''

View file

@ -5,11 +5,8 @@
= 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-5
- btn_class = 'btn btn-secondary' = render 'components/instances_btn_box'
= render 'moderation_queue/btn_base', text: t('moderation_queue.instances_button_box.text_check'), class: btn_class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.instances_button_box.text_allow'), class: btn_class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.instances_button_box.text_deny'), class: btn_class, href: ''
%h3.mt-5= t('moderation_queue.instances.title') %h3.mt-5= t('moderation_queue.instances.title')
%p= t('moderation_queue.instances.description') %p= t('moderation_queue.instances.description')

View file

@ -14,9 +14,4 @@
%h4.my-2= t('.profile_name') + ': ' + remote_profile['name'] %h4.my-2= t('.profile_name') + ': ' + remote_profile['name']
-# Botones de Moderación -# Botones de Moderación
.d-flex.py-4 = render 'components/comments_btn_box'
- @class = 'btn-secondary'
= render 'moderation_queue/btn_base', text: t('moderation_queue.profile_button_box.text_approve'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.profile_button_box.text_check'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.profile_button_box.text_deny'), class: @class, href: ''
= render 'moderation_queue/btn_base', text: t('moderation_queue.profile_button_box.text_report'), class: @class, href: ''

View file

@ -1,7 +1,7 @@
.row.justify-content-center.mb-5 .row.mb-5
%h1= t('.title') %h1= t('.title')
.row.justify-content-center .row
.col-md-8 .col-md-10
- summary = t('.instances') - summary = t('.instances')
= render 'layouts/details', summary: summary do = render 'layouts/details', summary: summary do
= render 'moderation_queue/instances', site: @site, post: @post, moderation_queue: @moderation_queue = render 'moderation_queue/instances', site: @site, post: @post, moderation_queue: @moderation_queue

View file

@ -7,13 +7,4 @@
-# Botones moderación -# Botones moderación
.d-flex.py-4 .d-flex.py-4
- @class = 'btn-secondary' = render 'components/comments_btn_box'
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_pause'), class: @class, href: ''
- @class = 'btn-secondary'
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_reject'), class: @class, href: ''
- @class = 'btn-secondary'
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_accept'), class: @class, href: ''
- @class = 'btn-secondary'
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_reply'), class: @class, href: ''
- @class = 'btn-secondary'
= render 'moderation_queue/btn_base', text: t('moderation_queue.button_box.text_report'), class: @class, href: ''

View file

@ -1,5 +1,5 @@
.row.justify-content-center .row
.col-md-8 .col-md-10
- summary = t('posts.edit.post') - summary = t('posts.edit.post')
= render 'layouts/details', summary: summary do = render 'layouts/details', summary: summary do
= render 'posts/form', site: @site, post: @post = render 'posts/form', site: @site, post: @post

View file

@ -36,6 +36,21 @@ es:
submenu_reject: Rechazado submenu_reject: Rechazado
block_lists: block_lists:
title: Listas de bloqueo title: Listas de bloqueo
comments_btn_box:
text_pause: Pausa
text_reject: Rechazar
text_accept: Aceptar Publicación
text_reply: Responder
text_report: Reportar
instances_btn_box:
text_check: Moderar caso por caso
text_allow: Permitir todo
text_deny: Bloquear instancia
profiles_btn_box:
text_approve: Aprobar siempre
text_check: Revisar siempre
text_deny: Bloquear
text_report: Reportar
moderation_queue: moderation_queue:
index: index:
title: Actividades de moderación title: Actividades de moderación
@ -51,21 +66,6 @@ es:
profile_id: ID profile_id: ID
profile_published: Publicada profile_published: Publicada
profile_summary: Resumen profile_summary: Resumen
profile_button_box:
text_approve: Aprobar siempre
text_check: Revisar siempre
text_deny: Bloquear
text_report: Reportar
button_box:
text_pause: Pausa
text_reject: Rechazar
text_accept: Aceptar Publicación
text_reply: Responder
text_report: Reportar
instances_button_box:
text_check: Moderar caso por caso
text_allow: Permitir todo
text_deny: Bloquear instancia
instances: instances:
title: Mis listas de bloqueo title: Mis listas de bloqueo
description: Descripción de listas de bloqueo description: Descripción de listas de bloqueo