2015-05-11 06:17:12 +02:00
|
|
|
.panel.panel-default#profile
|
2015-01-03 03:54:30 +01:00
|
|
|
%img.profile--avatar{src: @user.profile_picture.url(:large)}
|
2015-01-06 15:32:14 +01:00
|
|
|
- if @user.admin?
|
|
|
|
.profile--panel-badge.panel-badge-danger
|
|
|
|
%i.fa.fa-flask
|
|
|
|
Admin
|
|
|
|
- if @user.moderator?
|
|
|
|
.profile--panel-badge.panel-badge-success
|
|
|
|
%i.fa.fa-users
|
|
|
|
Mod
|
|
|
|
- if @user.supporter?
|
|
|
|
.profile--panel-badge.panel-badge-warning
|
|
|
|
%i.fa.fa-star
|
|
|
|
Supporter
|
2015-04-19 22:25:21 +02:00
|
|
|
- if @user.contributor?
|
|
|
|
.profile--panel-badge.panel-badge-primary
|
|
|
|
%i.fa.fa-github
|
|
|
|
Contributor
|
2015-01-25 20:30:09 +01:00
|
|
|
- if @user.blogger?
|
|
|
|
.profile--panel-badge.panel-badge-info
|
2015-01-25 20:50:42 +01:00
|
|
|
%i.fa.fa-pencil
|
2015-01-25 20:30:09 +01:00
|
|
|
Blogger
|
2015-01-12 22:44:13 +01:00
|
|
|
- if @user.banned?
|
|
|
|
.profile--panel-badge.panel-badge-default
|
|
|
|
%i.fa.fa-ban
|
|
|
|
Banned
|
2015-01-06 15:32:14 +01:00
|
|
|
- if @user.following? current_user
|
|
|
|
.profile--panel-badge.panel-badge-default
|
|
|
|
Follows you
|
2014-12-08 17:03:06 +01:00
|
|
|
.panel-body
|
2015-01-03 01:49:56 +01:00
|
|
|
- if @user.display_name.blank?
|
|
|
|
.profile--displayname
|
|
|
|
= @user.screen_name
|
|
|
|
- else
|
|
|
|
.profile--displayname
|
|
|
|
= @user.display_name
|
|
|
|
.profile--username
|
|
|
|
= @user.screen_name
|
2014-12-08 17:03:06 +01:00
|
|
|
- unless @user.bio.blank?
|
2015-01-07 07:02:07 +01:00
|
|
|
%p.profile--text= markdown @user.bio
|
2014-12-08 17:03:06 +01:00
|
|
|
- unless @user.website.blank?
|
2014-12-09 15:32:29 +01:00
|
|
|
%p.profile--text
|
2014-12-08 17:03:06 +01:00
|
|
|
%i.fa.fa-globe
|
|
|
|
%a{href: @user.website}= @user.display_website
|
|
|
|
- unless @user.location.blank?
|
2014-12-09 15:32:29 +01:00
|
|
|
%p.profile--text
|
2014-12-08 17:03:06 +01:00
|
|
|
%i.fa.fa-location-arrow
|
|
|
|
= @user.location
|
2015-01-03 03:56:14 +01:00
|
|
|
= render 'user/actions', user: @user, type: :follower
|
2015-04-19 22:25:21 +02:00
|
|
|
= render 'user/stats', user: @user
|