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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
632 B
Plaintext
Raw Normal View History

2022-09-07 15:48:01 -07:00
#questions
2023-12-10 12:53:12 -08:00
- if @questions.empty?
= render "shared/empty", icon: "fa-regular fa-comment", translation_key: ".user.questions"
2022-09-07 15:48:01 -07:00
- @questions.each do |q|
= render 'shared/question', q: q, type: nil
2020-04-25 08:21:39 -07:00
2022-09-07 15:48:01 -07:00
- if @more_data_available
.d-flex.justify-content-center.justify-content-sm-start#paginator
2023-01-21 11:04:55 -08:00
= 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: "." },
2023-01-21 11:04:55 -08:00
form: { data: { turbo_stream: true } }
2020-04-25 08:21:39 -07:00
- provide(:title, questions_title(@user))
2020-05-10 00:08:58 -07:00
- parent_layout 'user/profile'