Fix remaining missing subscribed answers in views
This commit is contained in:
parent
578dd9c6e6
commit
bbbff68c7d
|
@ -19,7 +19,7 @@
|
||||||
.tab-content.mt-3
|
.tab-content.mt-3
|
||||||
= render "discover/tab/answers", answers: @popular_answers, subscribed_answer_ids: @subscribed_answer_ids
|
= render "discover/tab/answers", answers: @popular_answers, subscribed_answer_ids: @subscribed_answer_ids
|
||||||
= render "discover/tab/questions", questions: @popular_questions
|
= render "discover/tab/questions", questions: @popular_questions
|
||||||
= render "discover/tab/discussed", comments: @most_discussed
|
= render "discover/tab/discussed", comments: @most_discussed, subscribed_answer_ids: @subscribed_answer_ids
|
||||||
.col-md-5.col-sm-6
|
.col-md-5.col-sm-6
|
||||||
%h2= t(".people.heading")
|
%h2= t(".people.heading")
|
||||||
%p= t(".people.description")
|
%p= t(".people.description")
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
.tab-pane.fade{ role: :tabpanel, id: "comments" }
|
.tab-pane.fade{ role: :tabpanel, id: "comments" }
|
||||||
- comments.each do |a|
|
- comments.each do |a|
|
||||||
= render "answerbox", a: a
|
= render "answerbox", a: a, subscribed_answer_ids:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
= turbo_stream.append "answers" do
|
= turbo_stream.append "answers" do
|
||||||
- @answers.each do |a|
|
- @answers.each do |a|
|
||||||
= render "answerbox", a:
|
= render "answerbox", a:, subscribed_answer_ids: @subscribed_answer_ids
|
||||||
|
|
||||||
= turbo_stream.update "paginator" do
|
= turbo_stream.update "paginator" do
|
||||||
- if @more_data_available
|
- if @more_data_available
|
||||||
|
|
Loading…
Reference in New Issue