mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 05:46:04 +01:00
12 lines
405 B
Text
12 lines
405 B
Text
= 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 } }
|