2018-10-31 17:00:31 +01:00
|
|
|
extends frame
|
2019-01-09 17:47:42 +01:00
|
|
|
block main-content
|
|
|
|
#site-background
|
|
|
|
label FEATURE SITE IMAGE
|
|
|
|
img#background(src=settings.background, alt="image for site background", for="background-upload")
|
|
|
|
input(id="background-upload" type="file" name="backgrond-upload")
|
|
|
|
|
2018-10-31 17:00:31 +01:00
|
|
|
#settings-index
|
|
|
|
#settings-index-wrapper
|
2018-12-18 18:52:59 +01:00
|
|
|
#member-settings
|
2019-01-03 17:17:02 +01:00
|
|
|
label YOU
|
|
|
|
br
|
|
|
|
#member-avatar-drop
|
|
|
|
img#avatar(src=member.avi, for="avatar-upload")
|
|
|
|
input(id="avatar-upload" type="file" name="avatar-upload")
|
|
|
|
#member-info
|
|
|
|
input(type='text', name='handle' id='settings-handle', placeholder='handle', value=member.handle, autofocus)
|
|
|
|
input(type='text', name='email' id='settings-email', placeholder='email', value=member.email, autofocus)
|
2018-12-18 18:52:59 +01:00
|
|
|
#site-settings
|
2019-01-03 18:04:00 +01:00
|
|
|
label SITE INFO
|
2018-12-18 18:52:59 +01:00
|
|
|
br
|
2018-12-19 18:56:18 +01:00
|
|
|
input(type='text', name='base-url' id='settings-url', placeholder='url', value=settings.url, autofocus)
|
|
|
|
input(type='text', name='base-title' id='settings-title', placeholder='site title', value=settings.title, autofocus)
|
|
|
|
textarea(id="settings-desc" type='text', name='settings_desc' class='settings-dec', placeholder='description stuff', autofocus)
|
2018-12-18 18:52:59 +01:00
|
|
|
=settings.description
|
2019-01-03 18:04:00 +01:00
|
|
|
button#privacy-toggle(data-private=settings.private)
|
|
|
|
-if (settings.private == 'false')
|
|
|
|
| SITE IS PRIVATE
|
|
|
|
-else
|
|
|
|
| SITE IS PUBLIC
|
2018-12-18 18:52:59 +01:00
|
|
|
#theme-settings
|
|
|
|
label THEMES
|
|
|
|
br
|
|
|
|
- var index = 0;
|
|
|
|
- for ( index; index < themes.length; index++)
|
2018-12-19 18:56:18 +01:00
|
|
|
-if(themes[index].current == "true")
|
|
|
|
a.theme-select(href="#" id=themes[index].theme.name, data-enabled="true")
|
|
|
|
= themes[index].theme["display-name"]
|
2019-01-03 18:04:00 +01:00
|
|
|
//svg(viewBox="0 0 20 20" class="icons")
|
2018-12-20 19:50:28 +01:00
|
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-check')
|
2018-12-19 18:56:18 +01:00
|
|
|
-else
|
|
|
|
a.theme-select(href="#" id=themes[index].theme.name, data-enabled="false")
|
2018-12-18 18:52:59 +01:00
|
|
|
= themes[index].theme["display-name"]
|
2019-01-03 18:13:26 +01:00
|
|
|
#mail-settings
|
|
|
|
label MAIL SETTINGS
|
2019-01-09 17:47:42 +01:00
|
|
|
-if(settings.email.active == "option-none")
|
|
|
|
a.mail-option#option-none(href="#", data-enabled='true') NONE
|
|
|
|
-else
|
|
|
|
a.mail-option#option-none(href="#", data-enabled='false') NONE
|
|
|
|
-if(settings.email.active == "option-mg")
|
|
|
|
a.mail-option#option-mg(href="#", data-enabled='true') MAILGUN
|
|
|
|
-else
|
|
|
|
a.mail-option#option-mg(href="#", data-enabled='false') MAILGUN
|
|
|
|
-if(settings.email.active == "option-smtp")
|
|
|
|
a.mail-option#option-smtp(href="#", data-enabled='true') SMTP
|
|
|
|
-else
|
|
|
|
a.mail-option#option-smtp(href="#", data-enabled='false') SMTP
|
|
|
|
include partials/mailforms
|
|
|
|
|
2019-01-03 18:13:26 +01:00
|
|
|
br
|
2018-12-18 18:52:59 +01:00
|
|
|
button#save-toggle SAVE SETTINGS
|
2018-10-31 17:00:31 +01:00
|
|
|
|