mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
extends ../layout.pug
|
|
include ../mixins/globalmanagenav.pug
|
|
|
|
block head
|
|
title Manage
|
|
|
|
block content
|
|
h1.board-title Global Management
|
|
br
|
|
+globalmanagenav('settings')
|
|
hr(size=1)
|
|
h4.no-m-p Delete board:
|
|
.form-wrapper.flexleft.mt-10
|
|
form.form-post(action=`/forms/global/deleteboard`, enctype='application/x-www-form-urlencoded', method='POST')
|
|
input(type='hidden' name='_csrf' value=csrf)
|
|
.row
|
|
.label Board URI
|
|
input(type='text' name='uri' required)
|
|
.row
|
|
.label I'm sure
|
|
label.postform-style.ph-5
|
|
input(type='checkbox', name='confirm', value='true' required)
|
|
input(type='submit', value='submit')
|
|
hr(size=1)
|
|
h4.no-m-p Settings:
|
|
.form-wrapper.flexleft.mt-10
|
|
form.form-post(action=`/forms/global/settings`, enctype='application/x-www-form-urlencoded', method='POST')
|
|
input(type='hidden' name='_csrf' value=csrf)
|
|
.row
|
|
.label Filters
|
|
textarea(name='filters' placeholder='Newline separated') #{settings.filters.join('\n')}
|
|
.row
|
|
.label Filter Mode
|
|
select(name='filter_mode')
|
|
option(value='0', selected=settings.filterMode === 0) Do nothing
|
|
option(value='1', selected=settings.filterMode === 1) Block post
|
|
option(value='2', selected=settings.filterMode === 2) Ban
|
|
.row
|
|
.label Filter Auto Ban Duration
|
|
input(type='text' name='ban_duration' placeholder='e.g. 1w' value=settings.filterBanDuration)
|
|
input(type='submit', value='save settings')
|
|
|