Apply hotkeys on user profiles
This commit is contained in:
parent
e307204375
commit
1aed44dd3d
|
@ -1,4 +1,7 @@
|
||||||
- unless @user.banned?
|
- unless @user.banned?
|
||||||
|
%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
|
||||||
- @pinned_answers.each do |a|
|
- @pinned_answers.each do |a|
|
||||||
= render "answerbox", a:
|
= render "answerbox", a:
|
||||||
|
|
Loading…
Reference in New Issue