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

13 lines
434 B
Plaintext

= turbo_stream.append "questions" do
- @questions.each do |q|
= render 'shared/question', q: q, type: nil
= turbo_stream.update "paginator" do
- if @more_data_available
= button_to t("voc.load"), show_user_questions_path(@user),
class: "btn btn-light",
method: :get,
params: { last_id: @questions_last_id },
data: { controller: :hotkey, hotkey: "." },
form: { data: { turbo_stream: true } }