Pass subscribed answer IDs down in Discover views

This commit is contained in:
Karina Kwiatek 2023-05-07 17:27:34 +02:00
parent 6afa7c6277
commit 578dd9c6e6
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@
%li.nav-item{ role: "presentation" }
%a.nav-link{ href: "#comments", role: :tab, aria: { controls: "comments" }, data: { bs_toggle: :tab } }= t(".content.tab.comments")
.tab-content.mt-3
= render "discover/tab/answers", answers: @popular_answers
= render "discover/tab/answers", answers: @popular_answers, subscribed_answer_ids: @subscribed_answer_ids
= render "discover/tab/questions", questions: @popular_questions
= render "discover/tab/discussed", comments: @most_discussed
.col-md-5.col-sm-6

View file

@ -1,3 +1,3 @@
.tab-pane.active.fade.show{ role: :tabpanel, id: "answers" }
- answers.each do |a|
= render "answerbox", a: a
= render "answerbox", a:, subscribed_answer_ids: