Simplify pinned check in answerbox

This is hidden by CSS in the prior case anyway
This commit is contained in:
Karina Kwiatek 2023-02-07 23:20:47 +01:00
parent fa68ab27d7
commit 2ee25d264f
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
.col-md-6.text-start.text-muted
%i.fa.fa-clock-o
= link_to(raw(t("time.distance_ago", time: time_tooltip(a))), answer_path(a.user.screen_name, a.id), class: "answerbox__permalink")
- if instance_variable_defined?(:@user) && @user == a.user && a.pinned_at.present?
- if a.pinned_at.present?
%span.answerbox__pinned
·
%i.fa.fa-thumbtack