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

24 lines
645 B
Plaintext
Raw Normal View History

2022-09-07 15:48:01 -07:00
- unless @user.banned?
2023-01-30 08:54:10 -08:00
#pinned-answers
2023-02-07 14:14:33 -08:00
- @pinned_answers.each do |a|
2023-01-30 08:54:10 -08:00
= render "answerbox", a:
2023-01-29 12:01:03 -08:00
2022-09-07 15:48:01 -07:00
#answers
- @answers.each do |a|
2023-01-30 08:54:10 -08:00
= render "answerbox", a:
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 10:50:07 -08:00
= button_to t("voc.load"), user_path(@user),
class: "btn btn-light",
method: :get,
params: { last_id: @answers_last_id },
2023-03-05 09:57:25 -08:00
data: { hotkey: "." },
2023-01-21 10:50:07 -08:00
form: { data: { turbo_stream: true } }
2020-04-25 08:21:39 -07:00
2021-08-06 04:52:11 -07:00
:ruby
provide(:title, user_title(@user))
provide(:og, user_opengraph(@user))
provide(:meta, user_twitter_card(@user))
parent_layout 'user/profile'