Retrospring/app/views/user/show.turbo_stream.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
482 B
Plaintext
Raw Normal View History

= turbo_stream.append "answers" do
- @answers.each do |a|
= render "answerbox", a:, subscribed_answer_ids: @subscribed_answer_ids, reacted_answer_ids: @reacted_answer_ids
= 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 },
data: { controller: :hotkey, hotkey: "." },
2023-01-21 10:50:07 -08:00
form: { data: { turbo_stream: true } }