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

fix: corregidas variables en partials
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2024-01-29 15:32:47 -03:00
parent 2f803f9ea6
commit 957e79e682
5 changed files with 9 additions and 9 deletions

View file

@ -3,12 +3,12 @@
.d-flex.py-2.justify-content-center .d-flex.py-2.justify-content-center
-# parámetros de botones -# parámetros de botones
-# text, class, href -# text, class, href
- @btn_box_params = [[t('.text_pause'), 'btn-outline-secondary disabled', ''], - btn_box_params = [[t('.text_pause'), 'btn-outline-secondary disabled', ''],
[t('.text_reject'), 'btn-outline-info', ''], [t('.text_reject'), 'btn-outline-info', ''],
[t('.text_accept'), 'bg-blue white', ''], [t('.text_accept'), 'bg-blue white', ''],
[t('.text_reply'), 'btn-outline-dark', ''], [t('.text_reply'), 'btn-outline-dark', ''],
[t('.text_report'), 'btn-outline-danger', '']] [t('.text_report'), 'btn-outline-danger', '']]
- @btn_box_params.each do |btn| - btn_box_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]

View file

@ -3,10 +3,10 @@
.d-flex.py-2.justify-content-center .d-flex.py-2.justify-content-center
-# parámetros de botones -# parámetros de botones
-# text, class, href -# text, class, href
- @btn_box_params = [[t('.text_deny'), 'btn-outline-info', ''], - btn_box_params = [[t('.text_deny'), 'btn-outline-info', ''],
[t('.text_allow'), 'btn-success', 'https://sutty.nl/'], [t('.text_allow'), 'btn-success', 'https://sutty.nl/'],
[t('.text_report'), 'btn-outline-danger', 'https://sutty.nl/']] [t('.text_report'), 'btn-outline-danger', 'https://sutty.nl/']]
- @btn_box_params.each do |btn| - btn_box_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]

View file

@ -1,5 +1,5 @@
.flex.py-2.mx-2.text-center .flex.py-2.mx-2.text-center
%h4= t('.profile_name') + ": " + @remote_profile['name'] %h4= 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/profile_button_box' = render 'moderation_queue/profile_button_box'

View file

@ -1,3 +1,3 @@
.flex .flex
%h1.text-center= t('.profile') %h1.text-center= t('.profile')
= render 'moderation_queue/remote_profile' = render 'moderation_queue/remote_profile', remote_profile: @remote_profile

View file

@ -1,7 +1,7 @@
.flex .flex
%h3.text-center.py-2 Comentarios %h3.text-center.py-2 Comentarios
= render 'moderation_queue/comment_filter_box' = render 'moderation_queue/comment_filter_box'
- @moderation_queue.each do |comment| - moderation_queue.each do |comment|
= render 'moderation_queue/comment', comment: comment = render 'moderation_queue/comment', comment: comment
.row.d-flex.justify-content-center .row.d-flex.justify-content-center
= render 'moderation_queue/comment_button_box' = render 'moderation_queue/comment_button_box'