69 lines
2.0 KiB
Plaintext
69 lines
2.0 KiB
Plaintext
extends ../layout.pug
|
|
block title
|
|
|Icy Network - User Settings
|
|
|
|
block body
|
|
.wrapper
|
|
.boxcont
|
|
.box#settings
|
|
h1 User Settings
|
|
.left
|
|
if message.text
|
|
if message.error
|
|
.message.error
|
|
span #{message.text}
|
|
else
|
|
.message
|
|
span #{message.text}
|
|
form#loginForm(method="POST", action="")
|
|
input(type="hidden", name="csrf", value=csrf)
|
|
label(for="username") Username
|
|
input(type="text", name="username", id="username", value=user.username, disabled)
|
|
label(for="display_name") Display Name
|
|
input(type="text", name="display_name", id="display_name", value=user.display_name)
|
|
label Avatar
|
|
.avatarCont
|
|
include ../includes/avatar.pug
|
|
.options
|
|
a#newAvatar(href='#') Change Avatar
|
|
if user.avatar_file
|
|
a#removeAvatar(href='#') Remove Avatar
|
|
input(type="submit", value="Save Settings")
|
|
.right
|
|
h3 Social Media Accounts
|
|
include ../includes/external.pug
|
|
if twitter_auth == false
|
|
a.option.accdisconnect(href="/api/external/twitter/remove")
|
|
i.fa.fa-fw.fa-times
|
|
|Unlink Twitter
|
|
if facebook_auth == false
|
|
a.option.accdisconnect(href="/api/external/facebook/remove")
|
|
i.fa.fa-fw.fa-times
|
|
|Unlink Facebook
|
|
if discord_auth == false
|
|
a.option.accdisconnect(href="/api/external/discord/remove")
|
|
i.fa.fa-fw.fa-times
|
|
|Unlink Discord
|
|
h3 Other Options
|
|
if password
|
|
a.option(href="/user/manage/password")
|
|
i.fa.fa-fw.fa-lock
|
|
|Change Password
|
|
if totp
|
|
a.option(href="/user/two-factor/disable")
|
|
i.fa.fa-fw.fa-lock
|
|
|Disable Two-Factor Authentication
|
|
else
|
|
a.option(href="/user/two-factor")
|
|
i.fa.fa-fw.fa-lock
|
|
|Enable Two-Factor Authentication
|
|
a.option(href="/user/manage/email")
|
|
i.fa.fa-fw.fa-envelope
|
|
|Change Email Address
|
|
.clients
|
|
h2 OAuth2 Authorized Clients
|
|
.cl#clientlist
|
|
span.load
|
|
i.fa.fa-spin.fa-spinner.fa-2x
|
|
span Loading list
|