retrospring/app/views/discover/_userbox.haml

17 lines
568 B
Text
Raw Permalink Normal View History

2020-05-10 13:37:08 +02:00
.card{ data: { id: u.id } }
2020-04-19 23:09:41 +02:00
.card-body
2015-05-13 23:55:10 +02:00
.media
.pull-left
%a{ href: user_path(u) }
2020-05-10 13:37:08 +02:00
%img.avatar-md.mr-2{ src: u.profile_picture.url(:medium) }
2015-05-13 23:55:10 +02:00
.media-body
2020-05-07 02:12:44 +02:00
%h6.media-heading.answerbox__question-user
- if u.profile.display_name.blank?
%a{ href: user_path(u) }
2020-05-10 13:37:08 +02:00
= u.screen_name
2015-05-13 23:55:10 +02:00
- else
%a{ href: user_path(u) }
= u.profile.display_name
2020-05-10 13:37:08 +02:00
%span.text-muted= u.screen_name
%p.answerbox__question-text= t(".#{type}", value: value, count: value)