mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 13:09:08 +01:00
Add shortcut for jumping to answers
This commit is contained in:
parent
a64a4699b0
commit
43d80fffcf
1 changed files with 1 additions and 1 deletions
|
@ -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" } }
|
||||
|
|
Loading…
Reference in a new issue