2014-12-08 08:03:06 -08:00
|
|
|
.panel.panel-default
|
2015-01-02 18:54:30 -08:00
|
|
|
%img.profile--avatar{src: @user.profile_picture.url(:large)}
|
2014-12-08 08:03:06 -08:00
|
|
|
.panel-body
|
2015-01-02 16:49:56 -08:00
|
|
|
- if @user.display_name.blank?
|
|
|
|
.profile--displayname
|
|
|
|
= @user.screen_name
|
2014-12-08 08:03:06 -08:00
|
|
|
- if @user.admin?
|
2015-01-02 17:08:09 -08:00
|
|
|
%span.label.label-danger.j2-up
|
2014-12-08 08:03:06 -08:00
|
|
|
%i.fa.fa-flask
|
|
|
|
Admin
|
2014-12-26 04:04:05 -08:00
|
|
|
- if @user.moderator?
|
2015-01-02 17:08:09 -08:00
|
|
|
%span.label.label-success.j2-up
|
2014-12-26 04:04:05 -08:00
|
|
|
%i.fa.fa-users
|
|
|
|
Mod
|
2015-01-02 15:24:06 -08:00
|
|
|
- if @user.supporter?
|
2015-01-02 17:08:09 -08:00
|
|
|
%span.label.label-warning.j2-up
|
2015-01-02 15:24:06 -08:00
|
|
|
%i.fa.fa-star
|
2015-01-02 15:33:10 -08:00
|
|
|
Supporter
|
2015-01-02 16:49:56 -08:00
|
|
|
- else
|
|
|
|
.profile--displayname
|
|
|
|
= @user.display_name
|
|
|
|
- if @user.admin?
|
2015-01-02 17:08:09 -08:00
|
|
|
%span.label.label-danger.j2-up
|
2015-01-02 16:49:56 -08:00
|
|
|
%i.fa.fa-flask
|
|
|
|
Admin
|
|
|
|
- if @user.moderator?
|
2015-01-02 17:08:09 -08:00
|
|
|
%span.label.label-success.j2-up
|
2015-01-02 16:49:56 -08:00
|
|
|
%i.fa.fa-users
|
|
|
|
Mod
|
|
|
|
- if @user.supporter?
|
2015-01-02 17:08:09 -08:00
|
|
|
%span.label.label-warning.j2-up
|
2015-01-02 16:49:56 -08:00
|
|
|
%i.fa.fa-star
|
|
|
|
Supporter
|
|
|
|
.profile--username
|
|
|
|
= @user.screen_name
|
2015-01-02 17:08:09 -08:00
|
|
|
- if @user.following? current_user
|
2015-01-02 17:13:53 -08:00
|
|
|
%p.profile--followtag
|
2015-01-02 17:08:09 -08:00
|
|
|
%span.label.label-default.j2-up
|
|
|
|
Follows you
|
2014-12-08 08:03:06 -08:00
|
|
|
- unless @user.bio.blank?
|
2014-12-09 06:32:29 -08:00
|
|
|
%p.profile--text= @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
|
2014-12-19 14:33:42 -08:00
|
|
|
= render 'user/stats', user: @user
|