{{define "admin/config.html"}} {{template "admin_shell_open" .}}
{{template "admin_flash" .}}

{{T "admin.config.title"}}

{{T "admin.config.desc"}}

{{range .Data.Sections}}

{{.Title}}

{{range .Items}} {{$k := .Key}}
{{.Key}}
{{if eq .Kind "boolean"}} {{else if eq .Kind "select_user_groups"}} {{else if eq .Kind "number"}} {{else}} {{if eq .Kind "masked"}}
{{T "admin.config.masked_hint"}}
{{end}} {{end}} {{if ne .Hint ""}}
{{.Hint}}
{{end}} {{if or (eq $k "mime_allow_screenshot") (eq $k "mime_allow_video") (eq $k "mime_allow_archive") (eq $k "ext_allow_screenshot") (eq $k "ext_allow_video") (eq $k "ext_allow_archive")}}
{{T "admin.config.comma_hint"}}
{{end}}
{{end}}
{{end}} {{if .IsPro}} {{end}}

{{T "admin.config.save_hint"}}

{{if index .Data "OAuthReady"}}

{{T "oauth.bind_title"}}

{{T "oauth.bind_hint"}}

{{if index .Data "OAuthLinked"}} {{T "oauth.status_linked"}}{{if index .Data "OAuthProvider"}} — {{index .Data "OAuthProvider"}}{{end}} {{else}} {{T "oauth.status_none"}} {{end}}
{{end}}
{{T "admin.config.toc_title"}}
{{template "admin_shell_close" .}} {{end}}