{{if gt .ban.ID 0}} {{- else -}} {{- end -}}

Add IP ban

{{with $.bannedForPostID}}{{end}} {{- with $.postID -}} {{- end -}}
IP/Mask
Duration
Example: '1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds', '1y2mo3w4d5h6m7s', etc
If blank, this is a permanent ban
Appeal wait time
Same syntax as above, but optional. If left blank, they can appeal immediately
Thread starting ban (user can reply to threads but can't make new threads)
Banned for post ID{{$.bannedForPostID}}
Board
Public ban message
Reason
Staff note

Banlist

Filter board:
{{range $_, $ban := $.banlist -}} {{end}}
ActionIPBoardReasonStaffStaff noteBanned post textSetExpiresAppeal at
Edit | Delete {{banMask $ban}} {{if not $ban.BoardID}}all{{else}}/{{getBoardDirFromID $ban.BoardID}}/{{end}} {{$ban.Message}} {{getStaffNameFromID $ban.StaffID}} {{$ban.StaffNote}} {{if not $ban.BannedForPostID}}N/A{{else}}{{$ban.CopyPostText}}{{end}} {{formatTimestamp $ban.IssuedAt}} {{- if $ban.Permanent}}Never{{else}}{{formatTimestamp $ban.ExpiresAt}}{{end -}} {{- if $ban.CanAppeal}}{{formatTimestamp $ban.AppealAt}}{{else}}Never{{end -}}