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

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

29 lines
944 B
Text
Raw Normal View History

%div{ data: { controller: "navigation" } }
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
#pinned-answers
- @pinned_answers.each do |a|
= render "answerbox", a:
2023-01-29 21:01:03 +01:00
#answers
- if @answers.empty?
= render "shared/empty", icon: "fa-regular fa-comments", translation_key: ".user.answers"
2023-12-10 21:53:12 +01:00
- @answers.each do |a|
= render "answerbox", a:
2020-04-25 17:21:39 +02:00
2022-09-08 00:48:01 +02:00
- if @more_data_available
.d-flex.justify-content-center.justify-content-sm-start#paginator
2023-01-21 19:50:07 +01:00
= button_to t("voc.load"), user_path(@user),
class: "btn btn-light",
method: :get,
params: { last_id: @answers_last_id },
data: { controller: :hotkey, hotkey: "." },
2023-01-21 19:50:07 +01:00
form: { data: { turbo_stream: true } }
2020-04-25 17:21:39 +02:00
2021-08-06 13:52:11 +02:00
:ruby
provide(:title, user_title(@user))
provide(:og, user_opengraph(@user))
provide(:meta, user_twitter_card(@user))
parent_layout 'user/profile'