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

feat: agregados componentes comentario, botonera y boton_base
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2024-01-22 14:17:24 -03:00
parent ef7d9d2a1e
commit d895b9c808
7 changed files with 36 additions and 0 deletions

View file

@ -585,4 +585,8 @@ $bezier: cubic-bezier(0.75, 0, 0.25, 1);
transform: rotate(90deg) translatey(-0.1em);
color: $magenta
}
.bg-blue {
background-color: $azul;
}

View file

@ -1,3 +1,5 @@
-# Detail Cola de Moderación
%details.details.py-2
%summary
%h3.py-2.text-center= @summary

View file

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

View file

@ -0,0 +1,14 @@
-# Componente Botonera de Moderación
.d-flex.py-2.justify-content-center
-# parámetros de botones
-# text, class, href
- @btn_box_params = [[t('.text_pause'), 'bg-outline-light', 'https://sutty.nl/'],
[t('.text_reject'), 'btn-outline-info blue', 'https://sutty.nl/'],
[t('.text_accept'), 'bg-blue white', 'https://sutty.nl/'],
[t('.text_reply'), 'btn-outline-dark', 'https://sutty.nl/'],
[t('.text_report'), 'btn-outline-danger', 'https://sutty.nl/']]
- @btn_box_params.each do |btn|
- @class = btn[1]
= render 'moderation_queue/btn_base', href: btn[2], class: @class, text: btn[0]

View file

@ -0,0 +1,4 @@
-# Componente Comentario
%p.py-2 Esta línea es donde irá el cuerpo del comentario
= render 'moderation_queue/button_box'

View file

@ -0,0 +1,3 @@
.flex
%h2.text-center Comentarios
= render 'moderation_queue/comment'

View file

@ -2,6 +2,12 @@ es:
moderation_queue:
remote_profile:
user: Nombre de usuario
button_box:
text_pause: Pausa
text_reject: Rechazar
text_accept: Aceptar Publicación
text_reply: Responder
text_report: Reportar
dark: Oscuro
es: Castellano
en: English