|
|
@ -3,49 +3,49 @@ block admin-content |
|
|
|
|
|
|
|
include ../../user/components/profile-picture |
|
|
|
|
|
|
|
form(method="POST", action=`/admin/user/${userAccount._id}`).uk-form |
|
|
|
form(method="POST", action=`/admin/user/${userProfile._id}`).uk-form |
|
|
|
.uk-card.uk-card-default.uk-card-small.uk-border-rounded |
|
|
|
.uk-card-header |
|
|
|
div(uk-grid).uk-grid-small |
|
|
|
.uk-width-auto |
|
|
|
+renderProfilePicture(userAccount) |
|
|
|
+renderProfilePicture(userProfile) |
|
|
|
|
|
|
|
.uk-width-expand |
|
|
|
.uk-margin |
|
|
|
.uk-text-lead= userAccount.displayName |
|
|
|
.uk-text-lead= userProfile.displayName |
|
|
|
div(uk-grid).uk-grid-small.uk-grid-divider |
|
|
|
.uk-width-auto @#{userAccount.username} |
|
|
|
.uk-width-auto= userAccount.email |
|
|
|
.uk-width-auto Created #{dayjs(userAccount.created).fromNow()} on #{dayjs(userAccount.created).format('MMMM D, YYYY')} |
|
|
|
.uk-width-auto @#{userProfile.username} |
|
|
|
.uk-width-auto= userProfile.email |
|
|
|
.uk-width-auto Created #{dayjs(userProfile.created).fromNow()} on #{dayjs(userProfile.created).format('MMMM D, YYYY')} |
|
|
|
|
|
|
|
.uk-card-body |
|
|
|
.uk-margin |
|
|
|
label(for="profile-bio").uk-form-label bio |
|
|
|
#profile-bio.markdown-block!= marked.parse(userAccount.bio || '(no bio provided)', { renderer: fullMarkdownRenderer }) |
|
|
|
#profile-bio.markdown-block!= marked.parse(userProfile.bio || '(no bio provided)', { renderer: fullMarkdownRenderer }) |
|
|
|
|
|
|
|
.uk-margin |
|
|
|
label(for="profile-badges").uk-form-label Profile Badges |
|
|
|
input(id="profile-badges", type= "text", placeholder= "Comma-separated list of badge names", value= userAccount.badges.join(',')).uk-input |
|
|
|
input(id="profile-badges", type= "text", placeholder= "Comma-separated list of badge names", value= userProfile.badges.join(',')).uk-input |
|
|
|
|
|
|
|
.uk-margin |
|
|
|
form(method="POST", action=`/admin/user/${userAccount._id}`).uk-form |
|
|
|
form(method="POST", action=`/admin/user/${userProfile._id}`).uk-form |
|
|
|
.uk-margin |
|
|
|
label.uk-form-label Flags |
|
|
|
.uk-margin-small |
|
|
|
div(uk-grid).uk-grid-small |
|
|
|
.uk-width-auto |
|
|
|
.pretty.p-default |
|
|
|
input(type="checkbox", name="flags.isAdmin", checked= userAccount.flags.isAdmin) |
|
|
|
input(type="checkbox", name="flags.isAdmin", checked= userProfile.flags.isAdmin) |
|
|
|
.state.p-success |
|
|
|
label Admin |
|
|
|
.uk-width-auto |
|
|
|
.pretty.p-default |
|
|
|
input(type="checkbox", name="flags.isModerator", checked= userAccount.flags.isModerator) |
|
|
|
input(type="checkbox", name="flags.isModerator", checked= userProfile.flags.isModerator) |
|
|
|
.state.p-success |
|
|
|
label Moderator |
|
|
|
.uk-width-auto |
|
|
|
.pretty.p-default |
|
|
|
input(type="checkbox", name="flags.isEmailVerified", checked= userAccount.flags.isEmailVerified) |
|
|
|
input(type="checkbox", name="flags.isEmailVerified", checked= userProfile.flags.isEmailVerified) |
|
|
|
.state.p-success |
|
|
|
label Email Verified |
|
|
|
|
|
|
@ -55,17 +55,17 @@ block admin-content |
|
|
|
div(uk-grid).uk-grid-small |
|
|
|
.uk-width-auto |
|
|
|
.pretty.p-default |
|
|
|
input(type="checkbox", name="permissions.canLogin", checked= userAccount.permissions.canLogin) |
|
|
|
input(type="checkbox", name="permissions.canLogin", checked= userProfile.permissions.canLogin) |
|
|
|
.state.p-success |
|
|
|
label Can Login |
|
|
|
.uk-width-auto |
|
|
|
.pretty.p-default |
|
|
|
input(type="checkbox", name="permissions.canReport", checked= userAccount.permissions.canReport) |
|
|
|
input(type="checkbox", name="permissions.canReport", checked= userProfile.permissions.canReport) |
|
|
|
.state.p-success |
|
|
|
label Can Report |
|
|
|
.uk-width-auto |
|
|
|
.pretty.p-default |
|
|
|
input(type="checkbox", name="permissions.canShareLinks", checked= userAccount.permissions.canShareLinks) |
|
|
|
input(type="checkbox", name="permissions.canShareLinks", checked= userProfile.permissions.canShareLinks) |
|
|
|
.state.p-success |
|
|
|
label Can Share Links |
|
|
|
|
|
|
@ -75,12 +75,12 @@ block admin-content |
|
|
|
div(uk-grid).uk-grid-small |
|
|
|
.uk-width-auto |
|
|
|
.pretty.p-default |
|
|
|
input(type="checkbox", name="optIn.system", checked= userAccount.optIn.system) |
|
|
|
input(type="checkbox", name="optIn.system", checked= userProfile.optIn.system) |
|
|
|
.state.p-success |
|
|
|
label System Messages |
|
|
|
.uk-width-auto |
|
|
|
.pretty.p-default |
|
|
|
input(type="checkbox", name="optIn.marketing", checked= userAccount.optIn.marketing) |
|
|
|
input(type="checkbox", name="optIn.marketing", checked= userProfile.optIn.marketing) |
|
|
|
.state.p-success |
|
|
|
label Marketing |
|
|
|
|
|
|
|