Fix userbox layout on frontpage
This commit is contained in:
parent
33e2533467
commit
932c611dab
|
@ -1,18 +1,13 @@
|
||||||
- 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
|
|
||||||
- else
|
|
||||||
%span.profile--displayname
|
|
||||||
= current_user.display_name
|
|
||||||
%span.profile--username
|
|
||||||
= current_user.screen_name
|
= current_user.screen_name
|
||||||
|
.profile__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
|
||||||
%a{href: show_user_followers_path(current_user.screen_name)}
|
%a{href: show_user_followers_path(current_user.screen_name)}
|
Loading…
Reference in New Issue