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

13 lines
405 B
Plaintext

= turbo_stream.append "timeline" do
- @timeline.each do |answer|
= render "answerbox", a: answer
= 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 } }