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.

28 lines
876 B

include ./post.pug
mixin ban(ban, banpage)
.ban
if !banpage || (ban.appeal == null && ban.allowAppeal === true)
input.post-check(type='checkbox', name='checkedbans[]' value=ban._id)
span
| Banned
if ban.board
| from #[a(href=`/${ban.board}/`) /#{ban.board}/]
else
| globally
| for: #{ban.reason}
div Issued by: #{ban.issuer}
div Issued against: ...#{ban.ip.slice(-10)}
div Banned: #{ban.date.toLocaleString(undefined, {hour12:false})}
div Expires: #{ban.expireAt.toLocaleString()}
if ban.posts && ban.posts.length > 0
span Banned for the following post#{ban.posts.length > 1 ? 's' : ''}:
section.thread
each p in ban.posts
+post(p, false, false, false, true)
if ban.appeal != null
div Submitted appeal:
textarea(disabled='true') #{ban.appeal}
if !ban.allowAppeal
div This ban was issued as non-appealable.