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

fix: cambiadas variables globales por locales
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2024-02-08 17:59:10 -03:00
parent ffc3f4a72a
commit 47de966f69
4 changed files with 13 additions and 22 deletions

View file

@ -2,5 +2,5 @@
%details.details.py-2 %details.details.py-2
%summary %summary
%h3.py-2= @summary %h3.py-2= summary
= yield = yield

View file

@ -1,14 +1,5 @@
-# Filtros -# Filtros
.d-flex.py-2 = render 'moderation_queue/filter_box'
= render 'components/dropdown', text: t('moderation_queue.filter_box.text_checked') do
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_pause'), path: '/'
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_accept'), path: '/'
= render 'components/dropdown', text: t('moderation_queue.filter_box.text_show') do
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_pause'), path: '/'
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_reject'), path: '/'
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_accept'), path: '/'
= render 'components/dropdown_item', text: t('moderation_queue.filter_box.submenu_report'), path: '/'
- moderation_queue.each do |comment| - moderation_queue.each do |comment|

View file

@ -1,13 +1,13 @@
.row.justify-content-center.mb-5 .row.justify-content-center.mb-5
%h1= t('moderation_queue.index.title') %h1= t('.title')
.row.justify-content-center .row.justify-content-center
.col-md-8 .col-md-8
- @summary = t('moderation_queue.index.instances') - summary = t('.instances')
= render 'layouts/details', summary: @summary do = render 'layouts/details', summary: summary do
= render 'moderation_queue/instances', site: @site, post: @post, moderation_queue: @moderation_queue = render 'moderation_queue/instances', site: @site, post: @post, moderation_queue: @moderation_queue
- @summary = t('moderation_queue.index.accounts') - summary = t('.accounts')
= render 'layouts/details', summary: @summary do = render 'layouts/details', summary: summary do
= render 'moderation_queue/accounts', site: @site, post: @post, moderation_queue: @moderation_queue = render 'moderation_queue/accounts', site: @site, post: @post, moderation_queue: @moderation_queue
- @summary = t('moderation_queue.index.comments') - summary = t('.comments')
= render 'layouts/details', summary: @summary do = render 'layouts/details', summary: summary do
= render 'moderation_queue/comments', site: @site, post: @post, moderation_queue: @moderation_queue = render 'moderation_queue/comments', site: @site, post: @post, moderation_queue: @moderation_queue

View file

@ -1,8 +1,8 @@
.row.justify-content-center .row.justify-content-center
.col-md-8 .col-md-8
- @summary = t('posts.edit.post') - summary = t('posts.edit.post')
= render 'layouts/details', summary: @summary do = render 'layouts/details', summary: summary do
= render 'posts/form', site: @site, post: @post = render 'posts/form', site: @site, post: @post
- @summary = t('posts.edit.moderation_queue') - summary = t('posts.edit.moderation_queue')
= render 'layouts/details', summary: @summary do = render 'layouts/details', summary: summary do
= render 'posts/moderation_queue', site: @site, post: @post, moderation_queue: @moderation_queue = render 'posts/moderation_queue', site: @site, post: @post, moderation_queue: @moderation_queue