2020-05-10 10:02:04 +02:00
|
|
|
- type ||= :nil
|
2020-05-01 18:38:29 +02:00
|
|
|
.card.h-100.userbox
|
2020-05-10 10:02:04 +02:00
|
|
|
%img.userbox__header{ src: user.profile_header.url(:mobile) }
|
2020-05-01 18:38:29 +02:00
|
|
|
.card-body
|
2022-10-10 23:16:57 +02:00
|
|
|
%img.userbox__avatar{ src: user.profile_picture.url(:small), loading: :lazy }
|
2022-07-23 12:06:05 +02:00
|
|
|
%a.profile__name{ href: user_path(user) }
|
2021-12-23 22:01:56 +01:00
|
|
|
- unless user.profile.display_name.blank?
|
2020-05-01 18:38:29 +02:00
|
|
|
.profile__display-name
|
2021-12-23 22:01:56 +01:00
|
|
|
= user.profile.display_name
|
2020-05-01 18:38:29 +02:00
|
|
|
.profile__screen-name
|
|
|
|
= user.screen_name
|
|
|
|
= render 'user/actions', user: user, type: type
|