retrospring/app/views/user/questions.html.haml
2023-01-22 00:04:33 +01:00

14 lines
461 B
Text

#questions
- @questions.each do |q|
= render 'shared/question', q: q, type: nil
- if @more_data_available
.d-flex.justify-content-center.justify-content-sm-start#paginator
= button_to t("voc.load"), show_user_questions_path(@user),
class: "btn btn-light",
method: :get,
params: { last_id: @questions_last_id },
form: { data: { turbo_stream: true } }
- provide(:title, questions_title(@user))
- parent_layout 'user/profile'