jschan - Anonymous imageboard software. Classic look, modern features and feel. Works without JavaScript and supports Tor, I2P, Lokinet, etc.
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.

29 lines
965 B

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 Settings:
.form-wrapper.flexleft
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, max 50') #{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')