Add shortcut for viewing answer page
This commit is contained in:
parent
cc73f84152
commit
d684e8d782
|
@ -19,7 +19,7 @@
|
|||
%h6.answerbox__answer-user
|
||||
= raw t(".answered", hide: hidespan(t(".hide"), "d-none d-sm-inline"), user: user_screen_name(a.user))
|
||||
.answerbox__answer-date
|
||||
= link_to(raw(t("time.distance_ago", time: time_tooltip(a))), answer_path(a.user.screen_name, a.id))
|
||||
= link_to(raw(t("time.distance_ago", time: time_tooltip(a))), answer_path(a.user.screen_name, a.id), data: { selection_hotkey: "l" })
|
||||
.col-md-6.d-flex.d-md-block.answerbox__actions
|
||||
= render "answerbox/actions", a: a, display_all: display_all
|
||||
- else
|
||||
|
|
|
@ -71,4 +71,7 @@
|
|||
%li.list-group-item
|
||||
= t('.answer.all_answers')
|
||||
%kbd a
|
||||
%li.list-group-item
|
||||
= t('.answer.view_answer')
|
||||
%kbd l
|
||||
|
||||
|
|
|
@ -594,6 +594,7 @@ en:
|
|||
view_comments: "View comments"
|
||||
comment: "Write a comment"
|
||||
all_answers: "View all answers"
|
||||
view_answer: "View answer page"
|
||||
global:
|
||||
navigation:
|
||||
up: "Move selection up"
|
||||
|
|
Loading…
Reference in New Issue