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.
 
 
 
 
 

38 lines
1.3 KiB

extends ../layout.pug
include ../mixins/boardheader.pug
include ../mixins/managenav.pug
include ../mixins/custompage.pug
block head
title /#{board._id}/ - #{__('Custom Pages')}
block content
+boardheader(__('Custom Pages'))
br
+managenav('custompages')
hr(size=1)
h4.mv-5 #{__('Add Custom Page')}:
.form-wrapper.flexleft
form.form-post(action=`/forms/board/${board._id}/addcustompages`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
.row
.label #{__('.html name')}
input(type='text' name='page' pattern='[a-zA-Z0-9-_]+' placeholder=__('a-zA-Z0-9-_ only') required)
.row
.label #{__('Title')}
input(type='text' name='title' required)
.row
.label #{__('Message')}
textarea(name='message' rows='10' placeholder=__('Supports post styling') required)
input(type='submit', value=__('Submit'))
if customPages.length > 0
hr(size=1)
h4.no-m-p #{__('Manage Custom Pages')}:
.form-wrapper.flexleft
form.form-post(action=`/forms/board/${board._id}/deletecustompages`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
each page in customPages
+custompage(page, true)
if customPages.length === 1
.anchor
input(type='submit', value=__('Delete'))