2022-09-07 14:20:03 -07:00
|
|
|
= turbo_stream.append "answers" do
|
|
|
|
- @answers.each do |a|
|
2023-11-07 13:40:37 -08:00
|
|
|
= render "answerbox", a:, subscribed_answer_ids: @subscribed_answer_ids, reacted_answer_ids: @reacted_answer_ids
|
2022-09-07 14:20:03 -07:00
|
|
|
|
|
|
|
= turbo_stream.update "paginator" do
|
|
|
|
- if @more_data_available
|
2023-01-21 10:50:07 -08:00
|
|
|
= button_to t("voc.load"), user_path(@user),
|
|
|
|
class: "btn btn-light",
|
|
|
|
method: :get,
|
|
|
|
params: { last_id: @answers_last_id },
|
2023-03-19 06:42:01 -07:00
|
|
|
data: { controller: :hotkey, hotkey: "." },
|
2023-01-21 10:50:07 -08:00
|
|
|
form: { data: { turbo_stream: true } }
|