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

fix: corregida botonera remote_profile #15080
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2024-02-02 14:45:25 -03:00
parent a9efe78c0b
commit da1f7f7754
6 changed files with 20 additions and 13 deletions

View file

@ -43,16 +43,17 @@ class ApplicationController < ActionController::Base
# href: [href del botón]
def botoneras_moderation_queue
# botones de comentarios
@comment_btn_params = [[t('moderation_queue.button_box.text_pause'), 'btn-secondary', ''],
@btn_params = [[t('moderation_queue.button_box.text_pause'), 'btn-secondary', ''],
[t('moderation_queue.button_box.text_reject'), 'btn-primary', ''],
[t('moderation_queue.button_box.text_accept'), 'bg-blue white', ''],
[t('moderation_queue.button_box.text_reply'), 'btn-outline-primary', ''],
[t('moderation_queue.button_box.text_report'), 'btn-danger', '']]
#botones de remote_profile (cuentas)
@profile_btn_params = [[t('moderation_queue.profile_button_box.text_deny'), 'btn-outline-info', ''],
[t('moderation_queue.profile_button_box.text_allow'), 'btn-success', 'https://sutty.nl/'],
[t('moderation_queue.profile_button_box.text_report'), 'btn-outline-danger', 'https://sutty.nl/']]
@profile_btn_params = [[t('moderation_queue.profile_button_box.text_approve'), 'btn-success', ''],
[t('moderation_queue.profile_button_box.text_check'), 'btn-outline-success', ''],
[t('moderation_queue.profile_button_box.text_deny'), 'bg-blue white', ''],
[t('moderation_queue.profile_button_box.text_report'), 'btn-danger', '']]
end
def notify_unconfirmed_email

View file

@ -1,6 +1,6 @@
-# Componente Botonera de Moderación
.d-flex.py-2.justify-content-center
- comment_btn_params.each do |btn|
.d-flex.py-4.justify-content-center
- btn_params.each do |btn|
- @class = btn[1]
= render 'moderation_queue/btn_base', href: btn[2], class: @class, text: btn[0]

View file

@ -2,4 +2,4 @@
- @moderation_queue.each do |comment|
= render 'comment', comment: comment, profile: @remote_profile
= render 'moderation_queue/button_box', comment_btn_params: @comment_btn_params
= render 'moderation_queue/button_box', btn_params: @btn_params

View file

@ -1,5 +1,9 @@
-# Componente Remote_Profile
.flex.py-2.mx-2.text-center
%h4= t('.profile_name') + ': ' + remote_profile['name']
%h5= t('.profile_id') + ': ' + remote_profile['id']
%h4.mb-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')
= render 'moderation_queue/button_box', comment_btn_params: @profile_btn_params
%h5= t('.profile_summary') + ':'
%p= sanitize remote_profile['summary']
= render 'moderation_queue/button_box', btn_params: @profile_btn_params

View file

@ -4,4 +4,4 @@
- moderation_queue.each do |comment|
= render 'moderation_queue/comment', comment: comment, profile: @remote_profile
.row.d-flex.justify-content-center
= render 'moderation_queue/button_box', comment_btn_params: @comment_btn_params
= render 'moderation_queue/button_box', btn_params: @btn_params

View file

@ -12,9 +12,11 @@ es:
profile_name: Nombre de la Cuenta
profile_id: ID
profile_published: Publicada
profile_summary: Resumen
profile_button_box:
text_deny: Bloquear que te siga
text_allow: Permitir que te siga
text_approve: Aprovar siempre
text_check: Revisar siempre
text_deny: Bloquear
text_report: Reportar
button_box:
text_pause: Pausa