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.

35 lines
1002 B

extends ../layout.pug
include ../mixins/newspost.pug
include ../mixins/globalmanagenav.pug
block head
title News
block content
h1.board-title Global Management
br
+globalmanagenav('news')
hr(size=1)
h4.no-m-p Add News:
.form-wrapper.flexleft
form.form-post(action=`/forms/global/addnews`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
.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 news.length > 0
hr(size=1)
h4.no-m-p Manage News:
.form-wrapper.flexleft
form.form-post(action=`/forms/global/deletenews`, enctype='application/x-www-form-urlencoded', method='POST')
input(type='hidden' name='_csrf' value=csrf)
each post in news
+newspost(post, true)
if news.length === 1
.anchor
input(type='submit', value='Delete')