{{/*### Handler=/settings TitleBar=Settings KyutGrill=settings2.jpg Include=menu.html MinPrivileges=2 */}} {{ define "tpl" }}
{{ template "settingsSidebar" . }}
{{ $d := .Get "users/self/settings" }}

{{ .T "General" }}

{{ if has .Context.User.Privileges 4 }}

{{ .T "Custom badge" }}

{{ .T "Do not use offensive badges and do not pretend to be someone else with your badge. If you abuse the badges system, you'll be silenced and you won't be able to edit your custom badge anymore." | html}}

{{ .T "Icon reference" }}


{{ $d.custom_badge.name }}

{{ end }}

{{ .T "Playstyle" }}

{{ $ := . }} {{ range $k, $v := styles }}
{{ $checked := band (int $d.play_style) (shift 1 $k) }}
{{ end }}

{{ .T "Preferences" }}

{{ $ds := band .ClientFlags 1 }}
{{ ieForm .Gin }}
{{ end }}