Apply hotkeys on user profiles
This commit is contained in:
parent
e307204375
commit
1aed44dd3d
|
@ -1,11 +1,14 @@
|
||||||
- unless @user.banned?
|
- unless @user.banned?
|
||||||
#pinned-answers
|
%div{ data: { controller: "navigation" } }
|
||||||
- @pinned_answers.each do |a|
|
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
|
||||||
= render "answerbox", a:
|
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
|
||||||
|
#pinned-answers
|
||||||
|
- @pinned_answers.each do |a|
|
||||||
|
= render "answerbox", a:
|
||||||
|
|
||||||
#answers
|
#answers
|
||||||
- @answers.each do |a|
|
- @answers.each do |a|
|
||||||
= render "answerbox", a:
|
= render "answerbox", a:
|
||||||
|
|
||||||
- if @more_data_available
|
- if @more_data_available
|
||||||
.d-flex.justify-content-center.justify-content-sm-start#paginator
|
.d-flex.justify-content-center.justify-content-sm-start#paginator
|
||||||
|
|
Loading…
Reference in New Issue