Retrospring/app/views/timeline/timeline.turbo_stream.haml

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

13 lines
452 B
Plaintext
Raw Normal View History

= turbo_stream.append "timeline" do
- @timeline.each do |answer|
2023-03-19 08:00:15 -07:00
= render "answerbox", a: answer, subscribed_answer_ids: @subscribed_answer_ids
= turbo_stream.update "paginator" do
- if @more_data_available
= button_to t("voc.load"), request.path,
class: "btn btn-light",
method: :get,
params: { last_id: @timeline_last_id },
data: { controller: :hotkey, hotkey: "." },
form: { data: { turbo_stream: true } }