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

38 lines
1.1 KiB
Plaintext
Raw Normal View History

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)}
2015-01-06 06:32:14 -08: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
- if @user.following? current_user
.profile--panel-badge.panel-badge-default
Follows you
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
- else
.profile--displayname
= @user.display_name
.profile--username
= @user.screen_name
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
2015-01-02 18:56:14 -08:00
= render 'user/actions', user: @user, type: :follower
= render 'user/stats', user: @user