Simplify pinned check in answerbox
This is hidden by CSS in the prior case anyway
This commit is contained in:
parent
fa68ab27d7
commit
2ee25d264f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue