@ -38,266 +38,284 @@ block content
.form-wrapper.flexleft.mt-10
.form-wrapper.flexleft.mt-10
form.form-post(action=`/forms/board/${board._id}/settings` method='POST' enctype='application/x-www-form-urlencoded')
form.form-post(action=`/forms/board/${board._id}/settings` method='POST' enctype='application/x-www-form-urlencoded')
input(type='hidden' name='_csrf' value=csrf)
input(type='hidden' name='_csrf' value=csrf)
.row.wrap.sb
.mv-10
.col.mr-5
.sm#tab-1
.row
.sm#tab-2
h4.mv-5 Settings:
.sm#tab-3
.row
.sm#tab-4
.label Board name
.sm#tab-5
input(type='text' name='name' value=board.settings.name)
.tabbed-area
.row
ul.tabs.group
.label Board Description
li
input(type='text' name='description' value=board.settings.description)
a(href='#tab-1') General
.row
li
.label Tags
a(href='#tab-2') Posting
textarea(name='tags' placeholder='Newline separated, max 10') #{board.tags.join('\n')}
li
.row
a(href='#tab-3') Files
.label Announcement
li
textarea(name='announcement' placeholder='Supports post styling') #{board.settings.announcement.raw}
a(href='#tab-4') Limits
.row
li
.label Theme
a(href='#tab-5') Antispam
select(name='theme')
.box-wrap
each theme in themes
.tab.tab-1
option(value=theme selected=board.settings.theme === theme) #{theme}
.col
.row
.row
.label Code Theme
.label Board name
select(name='code_theme')
input(type='text' name='name' value=board.settings.name)
each theme in codeThemes
.row
option(value=theme selected=board.settings.codeTheme === theme) #{theme}
.label Board Description
if globalLimits.customCss.enabled
input(type='text' name='description' value=board.settings.description)
.row
.row
.label Custom CSS
.label Tags
textarea(name='custom_css' placeholder='Test first in top-right settings if you have javascript enabled' maxlength=globalLimits.customCss.max) #{board.settings.customCss}
textarea(name='tags' placeholder='Newline separated, max 10') #{board.tags.join('\n')}
.row
.row
.label IDs
.label Announcement
label.postform-style.ph-5
textarea(name='announcement' placeholder='Supports post styling') #{board.settings.announcement.raw}
input(type='checkbox', name='ids', value='true' checked=board.settings.ids)
.row
.row
.label Theme
.label Geo Flags
select(name='theme')
label.postform-style.ph-5
each theme in themes
input(type='checkbox', name='geo_flags', value='true' checked=board.settings.geoFlags)
option(value=theme selected=board.settings.theme === theme) #{theme}
.row
.row
.label Custom Flags
.label Code Theme
label.postform-style.ph-5
select(name='code_theme')
input(type='checkbox', name='custom_flags', value='true' checked=board.settings.customFlags)
each theme in codeThemes
.row
option(value=theme selected=board.settings.codeTheme === theme) #{theme}
.label Reverse Image Search Links
if globalLimits.customCss.enabled
label.postform-style.ph-5
.row
input(type='checkbox', name='reverse_image_search_links', value='true' checked=board.settings.reverseImageSearchLinks)
.label Custom CSS
.row
textarea(name='custom_css' placeholder='Test first in top-right settings if you have javascript enabled' maxlength=globalLimits.customCss.max) #{board.settings.customCss}
.label External Archive Links
.row
label.postform-style.ph-5
.label IDs
input(type='checkbox', name='archive_links', value='true' checked=board.settings.archiveLinks)
label.postform-style.ph-5
.row
input(type='checkbox', name='ids', value='true' checked=board.settings.ids)
.label Enable Tegaki
.row
label.postform-style.ph-5
.label Geo Flags
input(type='checkbox', name='enable_tegaki', value='true' checked=board.settings.enableTegaki)
label.postform-style.ph-5
.row
input(type='checkbox', name='geo_flags', value='true' checked=board.settings.geoFlags)
.label SFW
.row
label.postform-style.ph-5
.label Custom Flags
input(type='checkbox', name='sfw', value='true' checked=board.settings.sfw)
label.postform-style.ph-5
.row
input(type='checkbox', name='custom_flags', value='true' checked=board.settings.customFlags)
.label Unlist locally
.row
label.postform-style.ph-5
.label Reverse Image Search Links
input(type='checkbox', name='unlisted_local', value='true' checked=board.settings.unlistedLocal)
label.postform-style.ph-5
.row
input(type='checkbox', name='reverse_image_search_links', value='true' checked=board.settings.reverseImageSearchLinks)
.label Unlist from webring
.row
label.postform-style.ph-5
.label External Archive Links
input(type='checkbox', name='unlisted_webring', value='true' checked=board.settings.unlistedWebring)
label.postform-style.ph-5
.row
input(type='checkbox', name='archive_links', value='true' checked=board.settings.archiveLinks)
h4.mv-5 File Options:
.row
.row
.label Enable Tegaki
.label Max Files
label.postform-style.ph-5
input(type='number' name='max_files' value=board.settings.maxFiles max=globalLimits.postFiles.max)
input(type='checkbox', name='enable_tegaki', value='true' checked=board.settings.enableTegaki)
.row
.row
.label Allow Video Files
.label SFW
label.postform-style.ph-5
label.postform-style.ph-5
input(type='checkbox', name='files_allow_video', value='true' checked=board.settings.allowedFileTypes.video)
input(type='checkbox', name='sfw', value='true' checked=board.settings.sfw)
.row
.row
.label Allow Image Files
.label Unlist locally
label.postform-style.ph-5
label.postform-style.ph-5
input(type='checkbox', name='files_allow_image', value='true' checked=board.settings.allowedFileTypes.image)
input(type='checkbox', name='unlisted_local', value='true' checked=board.settings.unlistedLocal)
.row
.row
.label Allow Animated Image Files
.label Unlist from webring
label.postform-style.ph-5
label.postform-style.ph-5
input(type='checkbox', name='files_allow_animated_image', value='true' checked=board.settings.allowedFileTypes.animatedImage)
input(type='checkbox', name='unlisted_webring', value='true' checked=board.settings.unlistedWebring)
.row
.label Allow Audio Files
label.postform-style.ph-5
input(type='checkbox', name='files_allow_audio', value='true' checked=board.settings.allowedFileTypes.audio)
.row
.label Allow Other Files
label.postform-style.ph-5
input(type='checkbox', name='files_allow_other', value='true' checked=board.settings.allowedFileTypes.other)
.row
.label User File Spoilering
label.postform-style.ph-5
input(type='checkbox', name='user_post_spoiler', value='true' checked=board.settings.userPostSpoiler)
.row
.label User File Unlinking
label.postform-style.ph-5
input(type='checkbox', name='user_post_unlink', value='true' checked=board.settings.userPostUnlink)
.col.mr-5
.row
h4.mv-5 Post Options:
.row
.label Anon Name
input(type='text' name='default_name' value=board.settings.defaultName)
.row
.label User Post Deletion
label.postform-style.ph-5
input(type='checkbox', name='user_post_delete', value='true' checked=board.settings.userPostDelete)
.row
.label Force Anon
label.postform-style.ph-5
input(type='checkbox', name='force_anon', value='true' checked=board.settings.forceAnon)
.row
.label Sage Only Email
label.postform-style.ph-5
input(type='checkbox', name='sage_only_email', value='true' checked=board.settings.sageOnlyEmail)
.row
.label Force Thread Subject
label.postform-style.ph-5
input(type='checkbox', name='force_thread_subject', value='true' checked=board.settings.forceThreadSubject)
.row
.label Force Thread Message
label.postform-style.ph-5
input(type='checkbox', name='force_thread_message', value='true' checked=board.settings.forceThreadMessage)
.row
.label Force Thread File
label.postform-style.ph-5
input(type='checkbox', name='force_thread_file', value='true' checked=board.settings.forceThreadFile)
.row
.label Force Reply Message
label.postform-style.ph-5
input(type='checkbox', name='force_reply_message', value='true' checked=board.settings.forceReplyMessage)
.row
.label Force Reply File
label.postform-style.ph-5
input(type='checkbox', name='force_reply_file', value='true' checked=board.settings.forceReplyFile)
.row
.label Disable Reply Subject
label.postform-style.ph-5
input(type='checkbox', name='disable_reply_subject', value='true' checked=board.settings.disableReplySubject)
.row
.label Min Thread Message Length
input(type='number' name='min_thread_message_length' value=board.settings.minThreadMessageLength min=0 max=globalLimits.fieldLength.message)
.row
.label Min Reply Message Length
input(type='number' name='min_reply_message_length' value=board.settings.minReplyMessageLength min=0 max=globalLimits.fieldLength.message)
.row
.label Max Thread Message Length
input(type='number' name='max_thread_message_length' value=board.settings.maxThreadMessageLength min=0 max=globalLimits.fieldLength.message)
.row
.label Max Reply Message Length
input(type='number' name='max_reply_message_length' value=board.settings.maxReplyMessageLength min=0 max=globalLimits.fieldLength.message)
.row
h4.mv-5 Limits:
.row
.label Thread Limit
input(type='number' name='thread_limit' value=board.settings.threadLimit min=globalLimits.threadLimit.min max=globalLimits.threadLimit.max)
.row
.label Reply Limit
input(type='number' name='reply_limit' value=board.settings.replyLimit min=globalLimits.replyLimit.min max=globalLimits.replyLimit.max)
.row
.label Bump Limit
input(type='number' name='bump_limit' value=board.settings.bumpLimit min=globalLimits.bumpLimit.min max=globalLimits.bumpLimit.max)
.row
.label Enforce Unique Files
select(name='file_r9k_mode')
option(value='0', selected=board.settings.fileR9KMode === 0) Off
option(value='1', selected=board.settings.fileR9KMode === 1) Per Thread
option(value='2', selected=board.settings.fileR9KMode === 2) Board Wide
.row
.label Enforce Unique Messages
select(name='message_r9k_mode')
option(value='0', selected=board.settings.messageR9KMode === 0) Off
option(value='1', selected=board.settings.messageR9KMode === 1) Per Thread
option(value='2', selected=board.settings.messageR9KMode === 2) Board Wide
.row
.label OP Reply Count Delete Protection
input(type='number' name='delete_protection_count' value=board.settings.deleteProtectionCount)
.row
.label OP Thread Age Delete Protection
input(type='text' name='delete_protection_age' placeholder='e.g. 1w' value=board.settings.deleteProtectionAge)
.col.w900
.row
h4.mv-5 Antispam
| (
a(href='/faq.html#antispam') more info
| ):
.row
.label Lock Mode
select(name='lock_mode')
option(value='0', selected=board.settings.lockMode === 0) Unlocked
option(value='1', selected=board.settings.lockMode === 1) Lock thread creation
option(value='2', selected=board.settings.lockMode === 2) Lock board
.row
.label Captcha Mode
select(name='captcha_mode')
option(value='0', selected=board.settings.captchaMode === 0) No Captcha
option(value='1', selected=board.settings.captchaMode === 1) Captcha for new thread
option(value='2', selected=board.settings.captchaMode === 2) Captcha for all posts
.row
.label PPH Trigger Threshold
input(type='number', name='pph_trigger', value=board.settings.pphTrigger)
.row
.label PPH Trigger Action
select(name='pph_trigger_action')
option(value='0', selected=board.settings.pphTriggerAction === 0) Do nothing
option(value='1', selected=board.settings.pphTriggerAction === 1) Enable captcha for new thread
option(value='2', selected=board.settings.pphTriggerAction === 2) Enable captcha for all posts
option(value='3', selected=board.settings.pphTriggerAction === 3) Lock thread creation
option(value='4', selected=board.settings.pphTriggerAction === 4) Lock board
.row
.label TPH Trigger Threshold
input(type='number', name='tph_trigger', value=board.settings.tphTrigger)
.row
.label TPH Trigger Action
select(name='tph_trigger_action')
option(value='0', selected=board.settings.tphTriggerAction === 0) Do nothing
option(value='1', selected=board.settings.tphTriggerAction === 1) Enable captcha for new thread
option(value='2', selected=board.settings.tphTriggerAction === 2) Enable captcha for all posts
option(value='3', selected=board.settings.tphTriggerAction === 3) Lock thread creation
option(value='4', selected=board.settings.tphTriggerAction === 4) Lock board
.row
.label Trigger Reset Lock Mode
select(name='lock_reset')
option(value='0', selected=board.settings.lockReset === 0) No change
option(value='1', selected=board.settings.lockReset === 1) Unlock board
option(value='2', selected=board.settings.lockReset === 2) Lock thread creation
.row
.label Trigger Reset Captcha Mode
select(name='captcha_reset')
option(value='0', selected=board.settings.captchaReset === 0) No change
option(value='1', selected=board.settings.captchaReset === 1) Captcha disabled
option(value='2', selected=board.settings.captchaReset === 2) Captcha for new thread
.row
.label Early 404
label.postform-style.ph-5
input(type='checkbox', name='early404', value='true' checked=board.settings.early404)
.row
.label Disable anonymizer file posting
label.postform-style.ph-5
input(type='checkbox', name='disable_anonymizer_file_posting', value='true' checked=board.settings.disableAnonymizerFilePosting)
.row
.label Blocked Countries
include ../includes/2charisocountries.pug
.row
.label Filters
textarea(name='filters' placeholder='Newline separated') #{board.settings.filters.join('\n')}
.row
.label Strict Filtering
label.postform-style.ph-5
input(type='checkbox', name='strict_filtering', value='true' checked=board.settings.strictFiltering)
.row
.label Filter Mode
select(name='filter_mode')
option(value='0', selected=board.settings.filterMode === 0) Do nothing
option(value='1', selected=board.settings.filterMode === 1) Block post
option(value='2', selected=board.settings.filterMode === 2) Ban
.row
.label Filter Auto Ban Duration
input(type='text' name='ban_duration' placeholder='e.g. 1w' value=board.settings.filterBanDuration)
input.row(type='submit', value='Save')
.tab.tab-2
.col
.row
.label Anon Name
input(type='text' name='default_name' value=board.settings.defaultName)
.row
.label User Post Deletion
label.postform-style.ph-5
input(type='checkbox', name='user_post_delete', value='true' checked=board.settings.userPostDelete)
.row
.label Force Anon
label.postform-style.ph-5
input(type='checkbox', name='force_anon', value='true' checked=board.settings.forceAnon)
.row
.label Sage Only Email
label.postform-style.ph-5
input(type='checkbox', name='sage_only_email', value='true' checked=board.settings.sageOnlyEmail)
.row
.label Force Thread Subject
label.postform-style.ph-5
input(type='checkbox', name='force_thread_subject', value='true' checked=board.settings.forceThreadSubject)
.row
.label Force Thread Message
label.postform-style.ph-5
input(type='checkbox', name='force_thread_message', value='true' checked=board.settings.forceThreadMessage)
.row
.label Force Thread File
label.postform-style.ph-5
input(type='checkbox', name='force_thread_file', value='true' checked=board.settings.forceThreadFile)
.row
.label Force Reply Message
label.postform-style.ph-5
input(type='checkbox', name='force_reply_message', value='true' checked=board.settings.forceReplyMessage)
.row
.label Force Reply File
label.postform-style.ph-5
input(type='checkbox', name='force_reply_file', value='true' checked=board.settings.forceReplyFile)
.row
.label Disable Reply Subject
label.postform-style.ph-5
input(type='checkbox', name='disable_reply_subject', value='true' checked=board.settings.disableReplySubject)
.row
.label Min Thread Message Length
input(type='number' name='min_thread_message_length' value=board.settings.minThreadMessageLength min=0 max=globalLimits.fieldLength.message)
.row
.label Min Reply Message Length
input(type='number' name='min_reply_message_length' value=board.settings.minReplyMessageLength min=0 max=globalLimits.fieldLength.message)
.row
.label Max Thread Message Length
input(type='number' name='max_thread_message_length' value=board.settings.maxThreadMessageLength min=0 max=globalLimits.fieldLength.message)
.row
.label Max Reply Message Length
input(type='number' name='max_reply_message_length' value=board.settings.maxReplyMessageLength min=0 max=globalLimits.fieldLength.message)
.tab.tab-3
.col
.row
.label Max Files
input(type='number' name='max_files' value=board.settings.maxFiles max=globalLimits.postFiles.max)
.row
.label Allow Video Files
label.postform-style.ph-5
input(type='checkbox', name='files_allow_video', value='true' checked=board.settings.allowedFileTypes.video)
.row
.label Allow Image Files
label.postform-style.ph-5
input(type='checkbox', name='files_allow_image', value='true' checked=board.settings.allowedFileTypes.image)
.row
.label Allow Animated Image Files
label.postform-style.ph-5
input(type='checkbox', name='files_allow_animated_image', value='true' checked=board.settings.allowedFileTypes.animatedImage)
.row
.label Allow Audio Files
label.postform-style.ph-5
input(type='checkbox', name='files_allow_audio', value='true' checked=board.settings.allowedFileTypes.audio)
.row
.label Allow Other Files
label.postform-style.ph-5
input(type='checkbox', name='files_allow_other', value='true' checked=board.settings.allowedFileTypes.other)
.row
.label User File Spoilering
label.postform-style.ph-5
input(type='checkbox', name='user_post_spoiler', value='true' checked=board.settings.userPostSpoiler)
.row
.label User File Unlinking
label.postform-style.ph-5
input(type='checkbox', name='user_post_unlink', value='true' checked=board.settings.userPostUnlink)
.tab.tab-4
.col
.row
.label Thread Limit
input(type='number' name='thread_limit' value=board.settings.threadLimit min=globalLimits.threadLimit.min max=globalLimits.threadLimit.max)
.row
.label Reply Limit
input(type='number' name='reply_limit' value=board.settings.replyLimit min=globalLimits.replyLimit.min max=globalLimits.replyLimit.max)
.row
.label Bump Limit
input(type='number' name='bump_limit' value=board.settings.bumpLimit min=globalLimits.bumpLimit.min max=globalLimits.bumpLimit.max)
.row
.label Enforce Unique Files
select(name='file_r9k_mode')
option(value='0', selected=board.settings.fileR9KMode === 0) Off
option(value='1', selected=board.settings.fileR9KMode === 1) Per Thread
option(value='2', selected=board.settings.fileR9KMode === 2) Board Wide
.row
.label Enforce Unique Messages
select(name='message_r9k_mode')
option(value='0', selected=board.settings.messageR9KMode === 0) Off
option(value='1', selected=board.settings.messageR9KMode === 1) Per Thread
option(value='2', selected=board.settings.messageR9KMode === 2) Board Wide
.row
.label OP Reply Count Delete Protection
input(type='number' name='delete_protection_count' value=board.settings.deleteProtectionCount)
.row
.label OP Thread Age Delete Protection
input(type='text' name='delete_protection_age' placeholder='e.g. 1w' value=board.settings.deleteProtectionAge)
.tab.tab-5
.col
.row
a.label(href='/faq.html#antispam') Antispam FAQ
.row
.label Lock Mode
select(name='lock_mode')
option(value='0', selected=board.settings.lockMode === 0) Unlocked
option(value='1', selected=board.settings.lockMode === 1) Lock thread creation
option(value='2', selected=board.settings.lockMode === 2) Lock board
.row
.label Captcha Mode
select(name='captcha_mode')
option(value='0', selected=board.settings.captchaMode === 0) No Captcha
option(value='1', selected=board.settings.captchaMode === 1) Captcha for new thread
option(value='2', selected=board.settings.captchaMode === 2) Captcha for all posts
.row
.label PPH Trigger Threshold
input(type='number', name='pph_trigger', value=board.settings.pphTrigger)
.row
.label PPH Trigger Action
select(name='pph_trigger_action')
option(value='0', selected=board.settings.pphTriggerAction === 0) Do nothing
option(value='1', selected=board.settings.pphTriggerAction === 1) Enable captcha for new thread
option(value='2', selected=board.settings.pphTriggerAction === 2) Enable captcha for all posts
option(value='3', selected=board.settings.pphTriggerAction === 3) Lock thread creation
option(value='4', selected=board.settings.pphTriggerAction === 4) Lock board
.row
.label TPH Trigger Threshold
input(type='number', name='tph_trigger', value=board.settings.tphTrigger)
.row
.label TPH Trigger Action
select(name='tph_trigger_action')
option(value='0', selected=board.settings.tphTriggerAction === 0) Do nothing
option(value='1', selected=board.settings.tphTriggerAction === 1) Enable captcha for new thread
option(value='2', selected=board.settings.tphTriggerAction === 2) Enable captcha for all posts
option(value='3', selected=board.settings.tphTriggerAction === 3) Lock thread creation
option(value='4', selected=board.settings.tphTriggerAction === 4) Lock board
.row
.label Trigger Reset Lock Mode
select(name='lock_reset')
option(value='0', selected=board.settings.lockReset === 0) No change
option(value='1', selected=board.settings.lockReset === 1) Unlock board
option(value='2', selected=board.settings.lockReset === 2) Lock thread creation
.row
.label Trigger Reset Captcha Mode
select(name='captcha_reset')
option(value='0', selected=board.settings.captchaReset === 0) No change
option(value='1', selected=board.settings.captchaReset === 1) Captcha disabled
option(value='2', selected=board.settings.captchaReset === 2) Captcha for new thread
.row
.label Early 404
label.postform-style.ph-5
input(type='checkbox', name='early404', value='true' checked=board.settings.early404)
.row
.label Disable anonymizer file posting
label.postform-style.ph-5
input(type='checkbox', name='disable_anonymizer_file_posting', value='true' checked=board.settings.disableAnonymizerFilePosting)
.row
.label Blocked Countries
include ../includes/2charisocountries.pug
.row
.label Filters
textarea(name='filters' placeholder='Newline separated') #{board.settings.filters.join('\n')}
.row
.label Strict Filtering
label.postform-style.ph-5
input(type='checkbox', name='strict_filtering', value='true' checked=board.settings.strictFiltering)
.row
.label Filter Mode
select(name='filter_mode')
option(value='0', selected=board.settings.filterMode === 0) Do nothing
option(value='1', selected=board.settings.filterMode === 1) Block post
option(value='2', selected=board.settings.filterMode === 2) Ban
.row
.label Filter Auto Ban Duration
input(type='text' name='ban_duration' placeholder='e.g. 1w' value=board.settings.filterBanDuration)
input.row(type='submit', value='save settings')