This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/views/settings.pug

57 lines
1.7 KiB
Plaintext
Raw Normal View History

extends layout.pug
block title
|Icy Network - User Settings
block body
.wrapper
.boxcont
.box#settings
h1 User Settings
.left
2017-08-24 20:02:52 +00:00
if message.text
if message.error
.message.error
2017-08-24 20:02:52 +00:00
span #{message.text}
else
.message
2017-08-24 20:02:52 +00:00
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)
2017-08-25 16:42:30 +00:00
label(for="display_name") 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(href="/api/external/twitter/remove") Unlink Twitter
if facebook_auth == false
a.option(href="/api/external/facebook/remove") Unlink Facebook
if discord_auth == false
a.option(href="/api/external/discord/remove") 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