2020-04-30 11:35:22 -07:00
|
|
|
.card#profile
|
2020-05-10 00:08:58 -07:00
|
|
|
%img.profile__avatar{ src: user.profile_picture.url(:large) }
|
2020-04-30 11:35:22 -07:00
|
|
|
.card-body
|
|
|
|
.profile__name
|
2021-12-23 13:01:56 -08:00
|
|
|
- unless user.profile.display_name.blank?
|
2020-04-30 11:35:22 -07:00
|
|
|
.profile__display-name
|
2021-12-23 13:01:56 -08:00
|
|
|
= user.profile.display_name
|
2020-04-30 11:35:22 -07:00
|
|
|
.profile__screen-name
|
2020-05-10 00:08:58 -07:00
|
|
|
= user.screen_name
|
2020-04-30 11:35:22 -07:00
|
|
|
.profile__badge-container
|
2020-05-10 00:08:58 -07:00
|
|
|
- if user.banned?
|
2020-04-30 11:35:22 -07:00
|
|
|
%span.badge.badge-dark
|
|
|
|
%i.fa.fa-fw.fa-ban
|
|
|
|
= t 'views.user.title.banned'
|
2020-05-10 00:08:58 -07:00
|
|
|
- if user.following? current_user
|
2020-04-30 11:35:22 -07:00
|
|
|
.badge.badge-light
|
|
|
|
= t 'views.user.follows_you'
|
|
|
|
- if user_signed_in? && current_user.has_role?(:administrator)
|
2020-05-10 00:08:58 -07:00
|
|
|
- if user.has_role?(:administrator)
|
2020-04-30 11:35:22 -07:00
|
|
|
%span.badge.badge-danger
|
|
|
|
%i.fa.fa-fw.fa-flask
|
|
|
|
= t 'views.user.title.admin'
|
2020-05-10 00:08:58 -07:00
|
|
|
- if user.has_role?(:moderator)
|
2020-04-30 11:35:22 -07:00
|
|
|
%span.badge.badge-success
|
|
|
|
%i.fa.fa-fw.fa-users
|
|
|
|
= t 'views.user.title.moderator'
|
2021-12-19 08:10:05 -08:00
|
|
|
- unless user.profile.description.blank?
|
2020-04-30 11:35:22 -07:00
|
|
|
.profile__biography
|
2021-12-19 08:10:05 -08:00
|
|
|
= markdown user.profile.description
|
|
|
|
- unless user.profile.website.blank?
|
2020-04-30 11:35:22 -07:00
|
|
|
.profile__website
|
|
|
|
%i.fa.fa-fw.fa-globe
|
2021-12-19 08:10:05 -08:00
|
|
|
%a{ href: user.profile.website }= user.profile.display_website
|
|
|
|
- unless user.profile.location.blank?
|
2020-04-30 11:35:22 -07:00
|
|
|
.profile__location
|
|
|
|
%i.fa.fa-fw.fa-location-arrow
|
2021-12-19 08:10:05 -08:00
|
|
|
= user.profile.location
|
2020-05-10 00:08:58 -07:00
|
|
|
= render 'user/actions', user: user, type: :follower
|