Fix userbox layout on frontpage
This commit is contained in:
parent
33e2533467
commit
932c611dab
|
@ -1,17 +1,12 @@
|
||||||
- header_class = if current_user.profile_header.exists? then "userbox--header-container" else "userbox--no-header" end
|
.card.userbox
|
||||||
.card
|
%img.userbox__header{src: current_user.profile_header.url(:mobile)}
|
||||||
%div{class: header_class}
|
|
||||||
%img.userbox--header{src: current_user.profile_header.url(:mobile)}
|
|
||||||
.card-body
|
.card-body
|
||||||
%img.userbox--avatar{src: current_user.profile_picture.url(:small)}
|
%img.userbox__avatar{src: current_user.profile_picture.url(:small)}
|
||||||
%p.userbox--username
|
.profile__name
|
||||||
- if current_user.display_name.blank?
|
- unless current_user.display_name.blank?
|
||||||
%span.profile--displayname
|
.profile__display-name
|
||||||
= current_user.screen_name
|
= current_user.screen_name
|
||||||
- else
|
.profile__screen-name
|
||||||
%span.profile--displayname
|
|
||||||
= current_user.display_name
|
|
||||||
%span.profile--username
|
|
||||||
= current_user.screen_name
|
= current_user.screen_name
|
||||||
.row
|
.row
|
||||||
.col-md-6.col-sm-6.col-xs-6
|
.col-md-6.col-sm-6.col-xs-6
|
Loading…
Reference in New Issue