Re-add pinned indicator to answerboxes

This commit is contained in:
Andreas Nedbal 2024-03-02 21:57:39 +01:00 committed by Andreas Nedbal
parent 6c38f61d5c
commit 54cff294b2
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@
= user_screen_name(a.user) = user_screen_name(a.user)
· ·
= link_to(time_tooltip(a), answer_path(a.user.screen_name, a.id), data: { selection_hotkey: "l" }) = link_to(time_tooltip(a), answer_path(a.user.screen_name, a.id), data: { selection_hotkey: "l" })
- if a.pinned_at.present?
%span.answerbox__pinned
·
%i.fa.fa-thumbtack
= t(".pinned")
.d-flex.d-md-block.answerbox__actions.ms-auto .d-flex.d-md-block.answerbox__actions.ms-auto
= render "answerbox/actions", a:, display_all: = render "answerbox/actions", a:, display_all:
.card-footer{ id: "ab-comments-section-#{a.id}", class: display_all.nil? ? "d-none" : nil } .card-footer{ id: "ab-comments-section-#{a.id}", class: display_all.nil? ? "d-none" : nil }