2022-07-24 14:30:20 +02:00
|
|
|
.card.profile#profile
|
|
|
|
.d-flex.d-sm-block
|
|
|
|
%img.profile__avatar{ src: user.profile_picture.url(:large) }
|
|
|
|
.profile__name-container
|
|
|
|
.profile__name
|
|
|
|
- unless user.profile.display_name.blank?
|
|
|
|
.profile__display-name
|
|
|
|
= user.profile.display_name
|
|
|
|
.profile__screen-name
|
|
|
|
= user.screen_name
|
2020-04-30 20:35:22 +02:00
|
|
|
.card-body
|
|
|
|
.profile__badge-container
|
2020-05-10 09:08:58 +02:00
|
|
|
- if user.banned?
|
2020-04-30 20:35:22 +02:00
|
|
|
%span.badge.badge-dark
|
|
|
|
%i.fa.fa-fw.fa-ban
|
2022-07-31 16:06:09 +02:00
|
|
|
= t(".badge.banned")
|
2020-05-10 09:08:58 +02:00
|
|
|
- if user.following? current_user
|
2020-04-30 20:35:22 +02:00
|
|
|
.badge.badge-light
|
2022-07-31 16:06:09 +02:00
|
|
|
= t(".badge.follows_you")
|
2022-12-18 03:21:25 +01:00
|
|
|
- if user_signed_in? && current_user.has_cached_role?(:administrator)
|
|
|
|
- if user.has_cached_role?(:administrator)
|
2020-04-30 20:35:22 +02:00
|
|
|
%span.badge.badge-danger
|
|
|
|
%i.fa.fa-fw.fa-flask
|
2022-07-31 16:06:09 +02:00
|
|
|
= t(".badge.admin")
|
2022-12-18 03:21:25 +01:00
|
|
|
- if user.has_cached_role?(:moderator)
|
2020-04-30 20:35:22 +02:00
|
|
|
%span.badge.badge-success
|
|
|
|
%i.fa.fa-fw.fa-users
|
2022-07-31 16:06:09 +02:00
|
|
|
= t(".badge.moderator")
|
2021-12-19 17:10:05 +01:00
|
|
|
- unless user.profile.description.blank?
|
2020-04-30 20:35:22 +02:00
|
|
|
.profile__biography
|
2021-12-19 17:10:05 +01:00
|
|
|
= markdown user.profile.description
|
|
|
|
- unless user.profile.website.blank?
|
2020-04-30 20:35:22 +02:00
|
|
|
.profile__website
|
|
|
|
%i.fa.fa-fw.fa-globe
|
2023-10-17 19:52:00 +02:00
|
|
|
%a{ href: user.profile.website, target: "_blank", rel: "me nofollow" }= user.profile.display_website
|
2021-12-19 17:10:05 +01:00
|
|
|
- unless user.profile.location.blank?
|
2020-04-30 20:35:22 +02:00
|
|
|
.profile__location
|
|
|
|
%i.fa.fa-fw.fa-location-arrow
|
2021-12-19 17:10:05 +01:00
|
|
|
= user.profile.location
|
2024-02-29 00:01:01 +01:00
|
|
|
- unless user.banned? && !current_user&.mod?
|
2024-02-28 23:53:22 +01:00
|
|
|
= render "user/actions", user: user, type: :follower
|