From 43d80fffcf9b0859e5505e7384b3caef5cefdab6 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 5 Mar 2023 17:29:18 +0100 Subject: [PATCH] Add shortcut for jumping to answers --- app/views/answerbox/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/answerbox/_header.html.haml b/app/views/answerbox/_header.html.haml index 5e60c114..30dd9738 100644 --- a/app/views/answerbox/_header.html.haml +++ b/app/views/answerbox/_header.html.haml @@ -11,7 +11,7 @@ = t(".asked_html", user: user_screen_name(a.question.user, context_user: a.user, author_identifier: a.question.author_is_anonymous ? a.question.author_identifier: nil), time: time_tooltip(a.question)) - if !a.question.author_is_anonymous && !a.question.direct ยท - %a{ href: question_path(a.question.user.screen_name, a.question.id) } + %a{ href: question_path(a.question.user.screen_name, a.question.id), data: { selection_hotkey: "a" } } = t(".answers", count: a.question.answer_count) .answerbox__question-body{ data: { controller: a.question.long? ? "collapse" : nil } } .answerbox__question-text{ class: a.question.long? && !display_all ? "collapsed" : "", data: { collapse_target: "content" } }