mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-20 21:10:00 +01:00
Apply hotkeys on question pages
This commit is contained in:
parent
d684e8d782
commit
b22fc0bd16
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,9 @@
|
||||||
= render "question", question: @question, hidden: false
|
= render "question", question: @question, hidden: false
|
||||||
= render "question", question: @question, hidden: true
|
= render "question", question: @question, hidden: true
|
||||||
.container.question-page
|
.container.question-page
|
||||||
#answers
|
#answers{ data: { controller: "navigation" } }
|
||||||
|
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
|
||||||
|
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
|
||||||
- @answers.each do |a|
|
- @answers.each do |a|
|
||||||
= render "answerbox", a: a, show_question: false
|
= render "answerbox", a: a, show_question: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue