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.
 
 
 
 
 

125 lines
4.5 KiB

extends ../layout.pug
include ../mixins/post.pug
include ../mixins/ban.pug
block head
title /#{board._id}/ - Manage
block content
include ../includes/boardheader.pug
br
h4.no-m-p Settings:
section.form-wrapper.flexleft.mv-10
form.form-post(action=`/forms/board/${board._id}/settings` method='POST' enctype='application/x-www-form-urlencoded')
input(type='hidden' name='_csrf' value=csrf)
section.row
.label Board name
input(type='text' name='name' placeholder=board.settings.name)
section.row
.label Board Description
input(type='text' name='description' placeholder=board.settings.description)
section.row
.label IDs
label.style.ph-5
input(type='checkbox', name='ids', value='true' checked=board.settings.ids)
section.row
.label Force Anon
label.style.ph-5
input(type='checkbox', name='force_anon', value='true' checked=board.settings.forceAnon)
section.row
.label Post Captcha
label.style.ph-5
input(type='checkbox', name='captcha', value='true' checked=board.settings.captcha)
section.row
.label Captcha PPH Trigger
input(type='number' name='captcha_trigger' placeholder=board.settings.captchaTrigger)
section.row
.label Post Deletion
label.style.ph-5
input(type='checkbox', name='user_post_delete', value='true' checked=board.settings.userPostDelete)
section.row
.label File Spoilers
label.style.ph-5
input(type='checkbox', name='user_post_spoiler', value='true' checked=board.settings.userPostSpoiler)
section.row
.label File Unlinking
label.style.ph-5
input(type='checkbox', name='user_post_unlink', value='true' checked=board.settings.userPostUnlink)
section.row
.label Force OP Message
label.style.ph-5
input(type='checkbox', name='force_op_message', value='true' checked=board.settings.forceOPMessage)
section.row
.label Force OP Subject
label.style.ph-5
input(type='checkbox', name='force_op_subject', value='true' checked=board.settings.forceOPSubject)
section.row
.label Force OP File
label.style.ph-5
input(type='checkbox', name='force_op_file', value='true' checked=board.settings.forceOPFile)
section.row
.label Anon Name
input(type='text' name='default_name' placeholder=board.settings.defaultName)
section.row
.label Min Message Length
input(type='number' name='min_message_length' placeholder=board.settings.minMessageLength)
section.row
.label Thread Limit
input(type='number' name='thread_limit' placeholder=board.settings.threadLimit)
section.row
.label Reply Limit
input(type='number' name='reply_limit' placeholder=board.settings.replyLimit)
section.row
.label Max Files
input(type='number' name='max_files' placeholder=board.settings.maxFiles)
input(type='submit', value='save settings')
hr(size=1)
h4.no-m-p Add Banners:
section.form-wrapper.flexleft.mv-10
form.form-post(action=`/forms/board/${board._id}/addbanners`, enctype='multipart/form-data', method='POST')
input(type='hidden' name='_csrf' value=csrf)
section.row
.label Upload
.required *
input#file(type='file', name='file' multiple required)
input(type='submit', value='submit')
hr(size=1)
if board.banners.length > 0
h4.no-m-p Delete Banners:
section.form-wrapper.flexleft.mv-10
form.form-post(action=`/forms/board/${board._id}/deletebanners`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
each banner in board.banners
label.banner-check
input(type='checkbox' name='checkedbanners[]' value=banner)
img.board-banner(src=`/banner/${board._id}/${banner}` width='300' height='100')
input(type='submit', value='delete')
hr(size=1)
h4.no-m-p Reports:
.mv-10
form(action=`/forms/board/${board._id}/modactions` method='POST' enctype='application/x-www-form-urlencoded')
input(type='hidden' name='_csrf' value=csrf)
if reports.length === 0
p No reports.
hr(size=1)
else
for report in reports
section.thread
+post(report, false, true)
hr(size=1)
include ../includes/actionfooter_manage.pug
hr(size=1)
h4.no-m-p Bans:
form(action=`/forms/board/${board._id}/unban` method='POST' enctype='application/x-www-form-urlencoded')
input(type='hidden' name='_csrf' value=csrf)
if bans.length === 0
p No bans.
hr(size=1)
else
for ban in bans
section.thread
+ban(ban, true)
hr(size=1)
section.action-wrapper
input(type='submit', value='unban')