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.