2022-09-08 13:41:32 -07:00
|
|
|
= turbo_stream.append "timeline" do
|
|
|
|
- @timeline.each do |answer|
|
2023-11-26 10:32:50 -08:00
|
|
|
= render "answerbox", a: answer
|
2022-09-08 13:41:32 -07:00
|
|
|
|
|
|
|
= turbo_stream.update "paginator" do
|
|
|
|
- if @more_data_available
|
2023-01-21 10:11:05 -08:00
|
|
|
= button_to t("voc.load"), request.path,
|
|
|
|
class: "btn btn-light",
|
|
|
|
method: :get,
|
|
|
|
params: { last_id: @timeline_last_id },
|
2023-03-19 06:42:01 -07:00
|
|
|
data: { controller: :hotkey, hotkey: "." },
|
2023-01-21 10:11:05 -08:00
|
|
|
form: { data: { turbo_stream: true } }
|