Add shortcut for viewing answer page

This commit is contained in:
Karina Kwiatek 2023-03-05 18:50:27 +01:00
parent cc73f84152
commit d684e8d782
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -71,4 +71,7 @@
%li.list-group-item
= t('.answer.all_answers')
%kbd a
%li.list-group-item
= t('.answer.view_answer')
%kbd l

View File

@ -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"