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

Loading…
Cancel
Save