2014-11-02 20:29:01 +01:00
|
|
|
.container.j2-page
|
2014-11-02 17:57:37 +01:00
|
|
|
.col-md-3.col-xs-12.col-sm-3
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
2014-11-30 23:08:11 +01:00
|
|
|
.media
|
|
|
|
.pull-left
|
2014-11-30 14:31:38 +01:00
|
|
|
%img.img-rounded.img-profile{src: gravatar_url(@user)}
|
2014-11-30 23:08:11 +01:00
|
|
|
.media-body
|
|
|
|
- if @user.display_name.blank?
|
|
|
|
%h2= @user.screen_name
|
|
|
|
- else
|
|
|
|
%h2.user-displayname= @user.display_name
|
|
|
|
%h4.text-muted.user-username= @user.screen_name
|
|
|
|
- if @user.admin?
|
|
|
|
%p.user-admin
|
|
|
|
%i.fa.fa-flask
|
|
|
|
Admin
|
2014-12-01 20:47:10 +01:00
|
|
|
/ TODO: make this look prettier (pixeldesu!!!!)
|
|
|
|
- unless @user.website.blank?
|
|
|
|
%i.fa.fa-globe
|
|
|
|
%a{href: @user.website}= @user.display_website
|
|
|
|
- unless @user.location.blank?
|
|
|
|
%i.fa.fa-location-arrow
|
|
|
|
= @user.location
|
|
|
|
- unless @user.bio.blank?
|
|
|
|
= @user.bio
|
2014-11-30 16:19:20 +01:00
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#follower-count= @user.follower_count
|
|
|
|
%h6.entry-subtext Follower
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#friend-count= @user.friend_count
|
|
|
|
%h6.entry-subtext Following
|
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#asked-count= @user.asked_count
|
|
|
|
%h6.entry-subtext Questions
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#answered-count= @user.answered_count
|
|
|
|
%h6.entry-subtext Answers
|
2014-11-30 15:28:38 +01:00
|
|
|
= render 'user/actions'
|
2014-11-24 17:52:58 +01:00
|
|
|
.hidden-xs= render 'shared/links'
|
2014-11-02 17:57:37 +01:00
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
2014-11-12 20:40:24 +01:00
|
|
|
= render 'shared/questionbox'
|
|
|
|
- @answers.each do |a|
|
2014-11-27 11:50:29 +01:00
|
|
|
= render 'shared/answerbox', a: a
|
2014-11-24 17:52:58 +01:00
|
|
|
.visible-xs= render 'shared/links'
|