|
|
|
@ -18,20 +18,21 @@ block content
|
|
|
|
|
if (userProfile.picture && userProfile.picture.large) {
|
|
|
|
|
currentProfile = userProfile.picture.large;
|
|
|
|
|
}
|
|
|
|
|
.uk-margin
|
|
|
|
|
.uk-card.uk-card-default.uk-card-small
|
|
|
|
|
.uk-card-header.uk-text-center
|
|
|
|
|
h1.uk-card-title Profile Photo
|
|
|
|
|
.uk-card-body
|
|
|
|
|
+renderFileUploadImage(
|
|
|
|
|
`/user/${userProfile._id}/profile-photo`,
|
|
|
|
|
'profile-picture-upload',
|
|
|
|
|
'profile-picture-file',
|
|
|
|
|
'site-profile-picture',
|
|
|
|
|
`/img/default-member.png`,
|
|
|
|
|
currentProfile,
|
|
|
|
|
{ aspectRatio: 1 },
|
|
|
|
|
)
|
|
|
|
|
if user.type === 'User'
|
|
|
|
|
.uk-margin
|
|
|
|
|
.uk-card.uk-card-default.uk-card-small
|
|
|
|
|
.uk-card-header.uk-text-center
|
|
|
|
|
h1.uk-card-title Profile Photo
|
|
|
|
|
.uk-card-body
|
|
|
|
|
+renderFileUploadImage(
|
|
|
|
|
`/user/${userProfile._id}/profile-photo`,
|
|
|
|
|
'profile-picture-upload',
|
|
|
|
|
'profile-picture-file',
|
|
|
|
|
'site-profile-picture',
|
|
|
|
|
`/img/default-member.png`,
|
|
|
|
|
currentProfile,
|
|
|
|
|
{ aspectRatio: 1 },
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
.uk-margin
|
|
|
|
|
.uk-card.uk-card-default.uk-card-small
|
|
|
|
|