2020-04-19 14:31:24 -07:00
|
|
|
.card#profile
|
2015-01-02 18:54:30 -08:00
|
|
|
%img.profile--avatar{src: @user.profile_picture.url(:large)}
|
2017-03-29 14:52:26 -07:00
|
|
|
- if user_signed_in? && current_user.admin?
|
|
|
|
- if @user.admin?
|
|
|
|
.profile--panel-badge.panel-badge-danger
|
|
|
|
%i.fa.fa-flask
|
|
|
|
= t 'views.user.title.admin'
|
|
|
|
- if @user.moderator?
|
|
|
|
.profile--panel-badge.panel-badge-success
|
|
|
|
%i.fa.fa-users
|
|
|
|
= t 'views.user.title.moderator'
|
2015-01-12 13:44:13 -08:00
|
|
|
- if @user.banned?
|
|
|
|
.profile--panel-badge.panel-badge-default
|
|
|
|
%i.fa.fa-ban
|
2015-06-07 06:10:17 -07:00
|
|
|
= t 'views.user.title.banned'
|
2015-01-06 06:32:14 -08:00
|
|
|
- if @user.following? current_user
|
|
|
|
.profile--panel-badge.panel-badge-default
|
2015-06-07 06:10:17 -07:00
|
|
|
= t 'views.user.follows_you'
|
2020-04-19 14:09:41 -07:00
|
|
|
.card-body
|
2015-05-15 15:39:33 -07:00
|
|
|
.profile--panel-name
|
|
|
|
- if @user.display_name.blank?
|
|
|
|
.profile--displayname
|
|
|
|
= @user.screen_name
|
|
|
|
- else
|
|
|
|
.profile--displayname
|
|
|
|
= @user.display_name
|
|
|
|
.profile--username
|
|
|
|
= @user.screen_name
|
2014-12-08 08:03:06 -08:00
|
|
|
- unless @user.bio.blank?
|
2015-01-06 22:02:07 -08:00
|
|
|
%p.profile--text= markdown @user.bio
|
2014-12-08 08:03:06 -08:00
|
|
|
- unless @user.website.blank?
|
2014-12-09 06:32:29 -08:00
|
|
|
%p.profile--text
|
2014-12-08 08:03:06 -08:00
|
|
|
%i.fa.fa-globe
|
|
|
|
%a{href: @user.website}= @user.display_website
|
|
|
|
- unless @user.location.blank?
|
2014-12-09 06:32:29 -08:00
|
|
|
%p.profile--text
|
2014-12-08 08:03:06 -08:00
|
|
|
%i.fa.fa-location-arrow
|
|
|
|
= @user.location
|
2015-01-02 18:56:14 -08:00
|
|
|
= render 'user/actions', user: @user, type: :follower
|
2015-04-19 13:25:21 -07:00
|
|
|
= render 'user/stats', user: @user
|