Update references to profile fields

This commit is contained in:
Karina Kwiatek 2021-12-19 17:10:05 +01:00
parent ff410773dd
commit ab720f3f55
2 changed files with 14 additions and 14 deletions

View File

@ -13,31 +13,31 @@
%p.font-weight-bold.mb-0 Display name
%p.text-muted
- if current_user.display_name.blank?
- if current_user.profile.display_name.blank?
None set!
- else
= current_user.display_name
= current_user.profile.display_name
%p.font-weight-bold.mb-0 Bio
%p.text-muted
- if current_user.bio.blank?
- if current_user.profile.description.blank?
None set!
- else
= current_user.bio
= current_user.profile.description
%p.font-weight-bold.mb-0 Location
%p.text-muted
- if current_user.location.blank?
- if current_user.profile.location.blank?
None set!
- else
= current_user.location
= current_user.profile.location
%p.font-weight-bold.mb-0 Website
%p.text-muted
- if current_user.website.blank?
- if current_user.profile.website.blank?
None set!
- else
= current_user.website
= current_user.profile.website
.col-md-6.col-sm-6.col-xs-12
%h4 Pictures
%p.font-weight-bold.mb-0 Profile picture

View File

@ -24,15 +24,15 @@
%span.badge.badge-success
%i.fa.fa-fw.fa-users
= t 'views.user.title.moderator'
- unless user.bio.blank?
- unless user.profile.description.blank?
.profile__biography
= markdown user.bio
- unless user.website.blank?
= markdown user.profile.description
- unless user.profile.website.blank?
.profile__website
%i.fa.fa-fw.fa-globe
%a{ href: user.website }= user.display_website
- unless user.location.blank?
%a{ href: user.profile.website }= user.profile.display_website
- unless user.profile.location.blank?
.profile__location
%i.fa.fa-fw.fa-location-arrow
= user.location
= user.profile.location
= render 'user/actions', user: user, type: :follower