mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 03:26:22 +00:00
fix: corregida botonera remote_profile #15080
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
a9efe78c0b
commit
da1f7f7754
6 changed files with 20 additions and 13 deletions
|
@ -43,16 +43,17 @@ class ApplicationController < ActionController::Base
|
||||||
# href: [href del botón]
|
# href: [href del botón]
|
||||||
def botoneras_moderation_queue
|
def botoneras_moderation_queue
|
||||||
# botones de comentarios
|
# 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_reject'), 'btn-primary', ''],
|
||||||
[t('moderation_queue.button_box.text_accept'), 'bg-blue white', ''],
|
[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_reply'), 'btn-outline-primary', ''],
|
||||||
[t('moderation_queue.button_box.text_report'), 'btn-danger', '']]
|
[t('moderation_queue.button_box.text_report'), 'btn-danger', '']]
|
||||||
|
|
||||||
#botones de remote_profile (cuentas)
|
#botones de remote_profile (cuentas)
|
||||||
@profile_btn_params = [[t('moderation_queue.profile_button_box.text_deny'), 'btn-outline-info', ''],
|
@profile_btn_params = [[t('moderation_queue.profile_button_box.text_approve'), 'btn-success', ''],
|
||||||
[t('moderation_queue.profile_button_box.text_allow'), 'btn-success', 'https://sutty.nl/'],
|
[t('moderation_queue.profile_button_box.text_check'), 'btn-outline-success', ''],
|
||||||
[t('moderation_queue.profile_button_box.text_report'), 'btn-outline-danger', 'https://sutty.nl/']]
|
[t('moderation_queue.profile_button_box.text_deny'), 'bg-blue white', ''],
|
||||||
|
[t('moderation_queue.profile_button_box.text_report'), 'btn-danger', '']]
|
||||||
end
|
end
|
||||||
|
|
||||||
def notify_unconfirmed_email
|
def notify_unconfirmed_email
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
-# Componente Botonera de Moderación
|
-# Componente Botonera de Moderación
|
||||||
|
|
||||||
.d-flex.py-2.justify-content-center
|
.d-flex.py-4.justify-content-center
|
||||||
- comment_btn_params.each do |btn|
|
- btn_params.each do |btn|
|
||||||
- @class = btn[1]
|
- @class = btn[1]
|
||||||
= render 'moderation_queue/btn_base', href: btn[2], class: @class, text: btn[0]
|
= render 'moderation_queue/btn_base', href: btn[2], class: @class, text: btn[0]
|
|
@ -2,4 +2,4 @@
|
||||||
- @moderation_queue.each do |comment|
|
- @moderation_queue.each do |comment|
|
||||||
|
|
||||||
= render 'comment', comment: comment, profile: @remote_profile
|
= 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
|
|
@ -1,5 +1,9 @@
|
||||||
|
-# Componente Remote_Profile
|
||||||
|
|
||||||
.flex.py-2.mx-2.text-center
|
.flex.py-2.mx-2.text-center
|
||||||
%h4= t('.profile_name') + ': ' + remote_profile['name']
|
%h4.mb-2= t('.profile_name') + ': ' + remote_profile['name']
|
||||||
%h5= t('.profile_id') + ': ' + remote_profile['id']
|
%h5= t('.profile_id') + ': ' + remote_profile['id']
|
||||||
%h5= t('.profile_published') + ': ' + remote_profile['published'].to_datetime.strftime('%m/%d/%Y')
|
%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
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
- moderation_queue.each do |comment|
|
- moderation_queue.each do |comment|
|
||||||
= render 'moderation_queue/comment', comment: comment, profile: @remote_profile
|
= render 'moderation_queue/comment', comment: comment, profile: @remote_profile
|
||||||
.row.d-flex.justify-content-center
|
.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
|
||||||
|
|
|
@ -12,9 +12,11 @@ es:
|
||||||
profile_name: Nombre de la Cuenta
|
profile_name: Nombre de la Cuenta
|
||||||
profile_id: ID
|
profile_id: ID
|
||||||
profile_published: Publicada
|
profile_published: Publicada
|
||||||
|
profile_summary: Resumen
|
||||||
profile_button_box:
|
profile_button_box:
|
||||||
text_deny: Bloquear que te siga
|
text_approve: Aprovar siempre
|
||||||
text_allow: Permitir que te siga
|
text_check: Revisar siempre
|
||||||
|
text_deny: Bloquear
|
||||||
text_report: Reportar
|
text_report: Reportar
|
||||||
button_box:
|
button_box:
|
||||||
text_pause: Pausa
|
text_pause: Pausa
|
||||||
|
|
Loading…
Reference in a new issue