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.
 
 
 
 
 

34 lines
1.0 KiB

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'))