{{define "player"}}{{template "top" .}} {{- with .Data}}{{if .ID}}
{{- with .Live}}{{template "state" .}}{{else}}offline{{end}} {{- with .Ban}} {{if .Kick}}kicked{{else}}banned{{end}} {{$.Data.BanText}}{{end}} {{- if and .Known (not .Player.Verified)}} unverified{{end}}

Steam ID {{.ID}} Steam profile{{template "icon" "external"}} (opens steamcommunity.com in a new tab) All their matches

{{- if not .Known}}

The server has not seen this Steam ID log in{{if .Ban}}; it is on the ban list{{end}}.

{{- end}}
{{- if .Known}}
Last seen
{{if .Live}}now{{else}}{{template "ago" (at $.Now .Player.LastSeen)}}{{end}}
First seen
{{template "local" .Player.FirstSeen}}
Logins
{{.Player.Logins}}
{{- end}} {{- with .Live}}
Online for
IP address
{{.IP}}
{{- end}} {{- with .Ban}}
{{if .Kick}}Kept out{{else}}Banned{{end}}
{{if .Until.IsZero}}for good{{else}}until {{datetime .Until}}{{end}}
{{- end}}

Actions

{{- if .Live}}{{template "kickform" (target $ .ID .Live.Name false)}}{{end}} {{- if .Ban}}

{{if .Ban.Kick}}Kept out by a kick{{else}}Banned{{end}} {{.BanText}}{{with .Ban}}{{if .Kick}}{{with .KickReason}}. Reason: {{.}}{{end}}{{else}}{{with .Reason}}. Reason: {{.}}{{end}}{{end}}{{end}}

{{template "unbanform" (target $ .ID (or .Player.Name "") .Ban.Kick)}}
{{- end}} {{- if or (not .Ban) .Ban.Kick}}{{template "banform" (target $ .ID (or .Player.Name "") false)}}{{end}}

Names used

in their recorded matches
{{- if .Names}} {{- range .Names}} {{- end}}
NameLast usedMatches
{{.Name}}{{template "ago" (at $.Now .Last)}}{{.Matches}}
{{- else}}

{{if .Known}}No recorded match yet; their name now: {{.Player.Name}}.{{else}}None recorded.{{end}}

{{- end}}

Recent matches

{{if .More}}All of them{{end}}
{{- if .Matches}}{{template "matchtable" (matchTable $ .Matches .ID)}}{{else}}

No recorded match.

{{end}}

Kicks and bans from this panel

from the audit log
{{- if .Audit}}{{template "auditlist" (auditList $ .Audit)}}{{else}}

None in the audit log. (Kicks and bans from the server's console are in its log only.)

{{end}}
{{- else}}

Open a player from the players list.

{{- end}}{{end}} {{template "bottom" .}}{{end}}