retrospring/app/views/shared/_userbox.html.haml

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

13 lines
497 B
Text
Raw Normal View History

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
%img.userbox__avatar{ src: user.profile_picture.url(:small), loading: :lazy }
%a.profile__name{ href: user_path(user) }
- unless user.profile.display_name.blank?
2020-05-01 18:38:29 +02:00
.profile__display-name
= user.profile.display_name
2020-05-01 18:38:29 +02:00
.profile__screen-name
= user.screen_name
= render "user/actions", user:, type:, own_followings:, own_blocks:, own_mutes: