mirror of https://gitgud.io/fatchan/jschan.git
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.
27 lines
851 B
27 lines
851 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()}
|
|
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.
|
|
|