Retrospring/app/views/user/_profile_info.html.haml

35 lines
1.0 KiB
Plaintext
Raw Normal View History

2014-12-08 08:03:06 -08:00
.panel.panel-default
.panel-body
.media
.pull-left
%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
%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?
%p.profile--admin
2014-12-08 08:03:06 -08:00
%i.fa.fa-flask
Admin
2014-12-26 04:04:05 -08:00
- if @user.moderator?
%p.profile--moderator
%i.fa.fa-users
Mod
2014-12-28 17:32:44 -08:00
- if @user.following? current_user
%p
%span.label.label-default
FOLLOWS YOU
2014-12-08 08:03:06 -08:00
- unless @user.bio.blank?
%p.profile--text= @user.bio
2014-12-08 08:03:06 -08:00
- unless @user.website.blank?
%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?
%p.profile--text
2014-12-08 08:03:06 -08:00
%i.fa.fa-location-arrow
= @user.location
= render 'user/actions', user: @user, type: :follower
= render 'user/stats', user: @user