Retrospring/app/views/discover/_userbox.html.haml

17 lines
560 B
Plaintext
Raw Normal View History

2020-05-10 04:37:08 -07:00
.card{ data: { id: u.id } }
2020-04-19 14:09:41 -07:00
.card-body
.d-flex
.flex-shrink-0
%a{ href: user_path(u) }
2023-01-04 02:00:45 -08:00
%img.avatar-md.me-2{ src: u.profile_picture.url(:medium) }
.flex-grow-1
%h6.answerbox__question-user
- if u.profile.display_name.blank?
%a{ href: user_path(u) }
2020-05-10 04:37:08 -07:00
= u.screen_name
2015-05-13 14:55:10 -07:00
- else
%a{ href: user_path(u) }
= u.profile.display_name
2020-05-10 04:37:08 -07:00
%span.text-muted= u.screen_name
%p.answerbox__question-text= t(".#{type}", value: value, count: value)