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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
550 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) }
= render AvatarComponent.new(user: u, size: "md", classes: ["me-2"])
.flex-grow-1
%h6.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.question__text= t(".#{type}", value: value, count: value)