dont show full IP hash on ban page

merge-requests/208/head
fatchan 5 years ago
parent 0a0d5512be
commit e2ae113741
  1. 7
      views/mixins/ban.pug

@ -1,8 +1,8 @@
include ./post.pug
mixin ban(ban, showcheck)
mixin ban(ban, modpage)
.ban
if showcheck
if modpage
input.post-check(type='checkbox', name='checkedbans[]' value=ban._id)
span
| Banned
@ -12,8 +12,7 @@ mixin ban(ban, showcheck)
| globally
| for: #{ban.reason}
div Issued by: #{ban.issuer}
//todo: hash ips
div Issued against: #{ban.ip}
div Issued against: ...#{ban.ip.slice(-10)}
div Banned: #{ban.date.toLocaleString()}
div Expires: #{ban.expireAt.toLocaleString()}
if ban.post

Loading…
Cancel
Save