Update references to profile fields
This commit is contained in:
parent
ff410773dd
commit
ab720f3f55
|
@ -13,31 +13,31 @@
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Display name
|
%p.font-weight-bold.mb-0 Display name
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.display_name.blank?
|
- if current_user.profile.display_name.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.display_name
|
= current_user.profile.display_name
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Bio
|
%p.font-weight-bold.mb-0 Bio
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.bio.blank?
|
- if current_user.profile.description.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.bio
|
= current_user.profile.description
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Location
|
%p.font-weight-bold.mb-0 Location
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.location.blank?
|
- if current_user.profile.location.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.location
|
= current_user.profile.location
|
||||||
|
|
||||||
%p.font-weight-bold.mb-0 Website
|
%p.font-weight-bold.mb-0 Website
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
- if current_user.website.blank?
|
- if current_user.profile.website.blank?
|
||||||
None set!
|
None set!
|
||||||
- else
|
- else
|
||||||
= current_user.website
|
= current_user.profile.website
|
||||||
.col-md-6.col-sm-6.col-xs-12
|
.col-md-6.col-sm-6.col-xs-12
|
||||||
%h4 Pictures
|
%h4 Pictures
|
||||||
%p.font-weight-bold.mb-0 Profile picture
|
%p.font-weight-bold.mb-0 Profile picture
|
||||||
|
|
|
@ -24,15 +24,15 @@
|
||||||
%span.badge.badge-success
|
%span.badge.badge-success
|
||||||
%i.fa.fa-fw.fa-users
|
%i.fa.fa-fw.fa-users
|
||||||
= t 'views.user.title.moderator'
|
= t 'views.user.title.moderator'
|
||||||
- unless user.bio.blank?
|
- unless user.profile.description.blank?
|
||||||
.profile__biography
|
.profile__biography
|
||||||
= markdown user.bio
|
= markdown user.profile.description
|
||||||
- unless user.website.blank?
|
- unless user.profile.website.blank?
|
||||||
.profile__website
|
.profile__website
|
||||||
%i.fa.fa-fw.fa-globe
|
%i.fa.fa-fw.fa-globe
|
||||||
%a{ href: user.website }= user.display_website
|
%a{ href: user.profile.website }= user.profile.display_website
|
||||||
- unless user.location.blank?
|
- unless user.profile.location.blank?
|
||||||
.profile__location
|
.profile__location
|
||||||
%i.fa.fa-fw.fa-location-arrow
|
%i.fa.fa-fw.fa-location-arrow
|
||||||
= user.location
|
= user.profile.location
|
||||||
= render 'user/actions', user: user, type: :follower
|
= render 'user/actions', user: user, type: :follower
|
||||||
|
|
Loading…
Reference in New Issue