{{define "top"}} {{.Title}}{{with .Server}} ยท {{.}}{{end}} {{- if .CSRF}} {{- end}} {{- if .CSRF}}

{{.Title}}

{{- with .Flash}}
{{.}}
{{- end}} {{- else}}
{{- end}} {{end}} {{define "bottom"}} {{- if .CSRF}}
{{template "dialogs" .}} {{- else}} {{- end}} {{end}} {{/* The kick / ban dialog (panel.js opens it from the [data-act] links; without JavaScript they lead to the player's page and its forms), and the confirmation dialog of forms with data-confirm. */}} {{define "dialogs"}} {{end}} {{define "kickchoices"}} {{- range kickPresets .}} {{- end}} {{end}} {{define "banchoices"}} {{- range banPresets}} {{- end}} {{end}} {{/* A kick form and a ban form for one player (the player's page; the Bans page's "ban a Steam ID" without .ID). */}} {{define "kickform"}}
Kick: keep them out for {{template "kickchoices" .KickMinutes}}
{{end}} {{define "banform"}}
{{- if .ID}} {{- else}} {{- end}}
Ban for {{template "banchoices"}}
{{end}} {{define "unbanform"}}
{{end}} {{/* Icons: simple line drawings, the text's colour. */}} {{define "icon"}}{{end}} {{/* The time an event happened: "5m ago" (panel.js keeps it right), the full time on hover. */}} {{define "ago"}}{{end}} {{define "local"}}{{end}}