mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 13:06:22 +00:00
fix: corregida llamada en _moderation_queue para mostrar comentarios en vista posts/edit
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
d3e5434a00
commit
f6a93b5bc2
4 changed files with 7 additions and 6 deletions
|
@ -82,6 +82,7 @@ class PostsController < ApplicationController
|
||||||
authorize post
|
authorize post
|
||||||
breadcrumb post.title.value, site_post_path(site, post, locale: locale), match: :exact
|
breadcrumb post.title.value, site_post_path(site, post, locale: locale), match: :exact
|
||||||
breadcrumb 'posts.edit', ''
|
breadcrumb 'posts.edit', ''
|
||||||
|
@moderation_queue = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'moderation_queue.yaml')))
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
-# 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', 'https://sutty.nl/'],
|
[t('.text_reject'), 'btn-outline-info', ''],
|
||||||
[t('.text_accept'), 'bg-blue white', 'https://sutty.nl/'],
|
[t('.text_accept'), 'bg-blue white', ''],
|
||||||
[t('.text_reply'), 'btn-outline-dark', 'https://sutty.nl/'],
|
[t('.text_reply'), 'btn-outline-dark', ''],
|
||||||
[t('.text_report'), 'btn-outline-danger', 'https://sutty.nl/']]
|
[t('.text_report'), 'btn-outline-danger', '']]
|
||||||
|
|
||||||
- @btn_box_params.each do |btn|
|
- @btn_box_params.each do |btn|
|
||||||
- @class = btn[1]
|
- @class = btn[1]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
- @moderation_queue.each do |comment|
|
- @moderation_queue.each do |comment|
|
||||||
|
|
||||||
= render 'comment', comment: comment
|
= render 'comment', comment: comment
|
||||||
-# %h1= comment['id']
|
|
|
@ -1,3 +1,4 @@
|
||||||
.flex
|
.flex
|
||||||
%h3.text-center.py-2 Comentarios
|
%h3.text-center.py-2 Comentarios
|
||||||
= render 'moderation_queue/comment'
|
- @moderation_queue.each do |comment|
|
||||||
|
= render 'moderation_queue/comment', comment: comment
|
Loading…
Reference in a new issue