christmas/views/profile.pug

33 lines
1.1 KiB
Text
Raw Normal View History

2018-11-20 11:19:58 -08:00
extends layout.pug
block content
if config.pfp
2021-12-03 08:13:43 -08:00
h2= lang('PROFILE_HEADER')
div(style='margin-top: 1em;')
.columns(style='margin-top: 1em;')
.column.is-narrow
.box
.columns
.column
figure.image.is-square(style='display: inline-block; width: 90%;')
img.is-rounded(src=req.user.pfp, style='object-fit: cover;')
.column.is-narrow
.column
span.is-size-3= req.user._id
br
br
form(action=`${_CC.config.base}profile/pfp`, method='POST')
2021-12-03 08:13:43 -08:00
label.label= lang('PROFILE_PFP_IMAGE_URL')
.field.has-addons
.control
input.input(name='image', value=req.user.pfp)
.control
button.button.is-primary(type='submit')
span.icon
i.fas.fa-save
2021-12-03 08:13:43 -08:00
h2= lang('PROFILE_SECURITY')
2021-09-14 23:41:44 -07:00
a.button.is-primary(href=`${_CC.config.base}profile/password`)
span.icon
i.fas.fa-shield-alt
2021-12-03 08:13:43 -08:00
span= lang('PROFILE_SECURITY_CHANGE_PASSWORD')