mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 08:06: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
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
31294ccbc7
commit
3f288ab6e4
14 changed files with 53 additions and 57 deletions
3
app/views/components/_btn_base.haml
Normal file
3
app/views/components/_btn_base.haml
Normal file
|
@ -0,0 +1,3 @@
|
|||
-# Componente Botón general Moderación
|
||||
|
||||
%button.btn.btn-lg.mx-2{ href: href, class: local_assigns[:class] }= text
|
|
@ -1,2 +1,3 @@
|
|||
-# Componente Checkbox
|
||||
.custom-control.custom-checkbox
|
||||
%input{ type: 'checkbox', id: '', class: '' }
|
||||
%input{ type: 'checkbox', id: '', class: '' }
|
||||
|
|
9
app/views/components/_comments_btn_box.haml
Normal file
9
app/views/components/_comments_btn_box.haml
Normal 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: ''
|
6
app/views/components/_instances_btn_box.haml
Normal file
6
app/views/components/_instances_btn_box.haml
Normal 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: ''
|
7
app/views/components/_profiles_btn_box.haml
Normal file
7
app/views/components/_profiles_btn_box.haml
Normal 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: ''
|
|
@ -6,9 +6,5 @@
|
|||
|
||||
-# Botones de Moderación
|
||||
.d-flex.py-4
|
||||
- @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: ''
|
||||
= render 'components/profiles_btn_box'
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
-# Componente Botón general Moderación
|
||||
|
||||
%button.btn.btn-lg.mx-2{ href: href, class: @class }= text
|
|
@ -6,10 +6,4 @@
|
|||
= render 'comment', comment: comment, profile: @remote_profile
|
||||
|
||||
-# Botones moderación
|
||||
.d-flex.py-4
|
||||
- @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: ''
|
||||
= render 'components/comments_btn_box'
|
|
@ -5,11 +5,8 @@
|
|||
= render 'moderation_queue/instance', instance: instance
|
||||
|
||||
-# Botones moderación
|
||||
.d-flex.py-4
|
||||
- btn_class = 'btn btn-secondary'
|
||||
= 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: ''
|
||||
.d-flex.py-5
|
||||
= render 'components/instances_btn_box'
|
||||
|
||||
%h3.mt-5= t('moderation_queue.instances.title')
|
||||
%p= t('moderation_queue.instances.description')
|
||||
|
|
|
@ -14,9 +14,4 @@
|
|||
%h4.my-2= t('.profile_name') + ': ' + remote_profile['name']
|
||||
|
||||
-# Botones de Moderación
|
||||
.d-flex.py-4
|
||||
- @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: ''
|
||||
= render 'components/comments_btn_box'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.row.justify-content-center.mb-5
|
||||
.row.mb-5
|
||||
%h1= t('.title')
|
||||
.row.justify-content-center
|
||||
.col-md-8
|
||||
.row
|
||||
.col-md-10
|
||||
- summary = t('.instances')
|
||||
= render 'layouts/details', summary: summary do
|
||||
= render 'moderation_queue/instances', site: @site, post: @post, moderation_queue: @moderation_queue
|
||||
|
|
|
@ -7,13 +7,4 @@
|
|||
|
||||
-# Botones moderación
|
||||
.d-flex.py-4
|
||||
- @class = 'btn-secondary'
|
||||
= 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: ''
|
||||
= render 'components/comments_btn_box'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.row.justify-content-center
|
||||
.col-md-8
|
||||
.row
|
||||
.col-md-10
|
||||
- summary = t('posts.edit.post')
|
||||
= render 'layouts/details', summary: summary do
|
||||
= render 'posts/form', site: @site, post: @post
|
||||
|
|
|
@ -36,6 +36,21 @@ es:
|
|||
submenu_reject: Rechazado
|
||||
block_lists:
|
||||
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:
|
||||
index:
|
||||
title: Actividades de moderación
|
||||
|
@ -51,21 +66,6 @@ es:
|
|||
profile_id: ID
|
||||
profile_published: Publicada
|
||||
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:
|
||||
title: Mis listas de bloqueo
|
||||
description: Descripción de listas de bloqueo
|
||||
|
|
Loading…
Reference in a new issue