2014-12-08 08:03:06 -08:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
|
|
|
.media
|
|
|
|
.pull-left
|
2014-12-09 06:32:29 -08:00
|
|
|
%img.img-rounded.profile--img{src: gravatar_url(@user)}
|
2014-12-08 08:03:06 -08:00
|
|
|
.media-body
|
|
|
|
- if @user.display_name.blank?
|
|
|
|
%h2= @user.screen_name
|
|
|
|
- else
|
2014-12-09 06:32:29 -08:00
|
|
|
%h2.profile--displayname= @user.display_name
|
|
|
|
%h4.text-muted.profile--username= @user.screen_name
|
2014-12-08 08:03:06 -08:00
|
|
|
- if @user.admin?
|
2014-12-09 06:32:29 -08:00
|
|
|
%p.profile--admin
|
2014-12-08 08:03:06 -08:00
|
|
|
%i.fa.fa-flask
|
|
|
|
Admin
|
|
|
|
- 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
|
|
|
|
.row
|
2014-12-08 08:11:54 -08:00
|
|
|
%a{href: show_user_followers_path(@user.screen_name)}
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#follower-count= @user.follower_count
|
2014-12-09 13:07:45 -08:00
|
|
|
%h6.entry-subtext Followers
|
2014-12-08 10:51:34 -08:00
|
|
|
%a{href: show_user_friends_path(@user.screen_name)}
|
2014-12-08 08:11:54 -08:00
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#friend-count= @user.friend_count
|
|
|
|
%h6.entry-subtext Following
|
2014-12-08 08:03:06 -08:00
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#asked-count= @user.asked_count
|
2014-12-09 13:07:45 -08:00
|
|
|
%h6.entry-subtext Questions
|
2014-12-08 08:03:06 -08:00
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#answered-count= @user.answered_count
|
2014-12-09 13:07:45 -08:00
|
|
|
%h6.entry-subtext Answers
|
2014-12-08 10:48:12 -08:00
|
|
|
= render 'user/actions', user: @user, type: :follower
|