mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:16:23 +00:00
fix: arreglando conflictos
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:
commit
d9d50cb81e
6 changed files with 30 additions and 4 deletions
|
@ -15,4 +15,4 @@
|
|||
.row.border.border-white
|
||||
%p= comment['content'] #falta parsear
|
||||
.row
|
||||
= render 'moderation_queue/button_box'
|
||||
= render 'moderation_queue/comment_button_box'
|
||||
|
|
12
app/views/moderation_queue/_profile_button_box.haml
Normal file
12
app/views/moderation_queue/_profile_button_box.haml
Normal file
|
@ -0,0 +1,12 @@
|
|||
-# Componente Botonera de Profile
|
||||
|
||||
.d-flex.py-2.justify-content-center
|
||||
-# parámetros de botones
|
||||
-# text, class, href
|
||||
- @btn_box_params = [[t('.text_deny'), 'btn-outline-info', ''],
|
||||
[t('.text_allow'), 'btn-success', '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]
|
5
app/views/moderation_queue/_remote_profile.haml
Normal file
5
app/views/moderation_queue/_remote_profile.haml
Normal file
|
@ -0,0 +1,5 @@
|
|||
.flex.py-2.mx-2.text-center
|
||||
%h4= t('.profile_name') + ": " + @remote_profile['name']
|
||||
%h5= t('.profile_id') + ": " + @remote_profile['id']
|
||||
%h5= t('.profile_published') + ": " + @remote_profile['published']
|
||||
= render 'moderation_queue/profile_button_box'
|
|
@ -1 +1,3 @@
|
|||
%h1= @remote_profile['name']
|
||||
.flex
|
||||
%h1.text-center= t('.profile')
|
||||
= render 'moderation_queue/remote_profile'
|
|
@ -1,8 +1,15 @@
|
|||
es:
|
||||
moderation_queue:
|
||||
remote_profile:
|
||||
user: Nombre de usuario
|
||||
button_box:
|
||||
profile: Cuentas
|
||||
profile_name: Nombre de la Cuenta
|
||||
profile_id: ID
|
||||
profile_published: Publicada
|
||||
profile_button_box:
|
||||
text_deny: Bloquear que te siga
|
||||
text_allow: Permitir que te siga
|
||||
text_report: Reportar
|
||||
comment_button_box:
|
||||
text_pause: Pausa
|
||||
text_reject: Rechazar
|
||||
text_accept: Aceptar Publicación
|
||||
|
|
Loading…
Reference in a new issue