mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 20:15:59 +01:00
Simplify pinned check in answerbox
This is hidden by CSS in the prior case anyway
This commit is contained in:
parent
fa68ab27d7
commit
2ee25d264f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue