{{/* People, their limits and their use: one page in three tabs, because all three are about the same tree. Each tab keeps its old address. Forms and links work as plain navigation; htmx, when it loads, swaps only #people, so a change does not jump the page. */}} {{define "admin_people"}}
{{t "people.sub"}}
{{template "nav" .Nav}}{{t "people.in"}} {{range $i, $m := .}}{{if $i}}, {{end}}{{$m.Path}}{{end}}
{{else}}{{if eq (printf "%s" $d.Kind) "user"}}{{t "people.on_own"}}
{{end}}{{end}} {{if or .Limits .Person}}{{t "people.budgets_unpriced"}}
{{end}} {{with .Limits}}{{.Shadowed}}
{{end}} {{if $d.CSRF}}{{t "people.capacity_note"}} {{t "people.change"}}
{{else}}{{t "people.no_capacity"}} {{t "people.set_one"}}
{{end}} {{end}} {{if .HasUsage}}{{t "people.n_requests" (compact .Totals.Requests)}} · {{t "people.n_tokens" (compact .Totals.Tokens)}}{{if .Priced}} · {{t "people.spent_amount" .Totals.Spend}}{{end}}{{if .Totals.Errors}} · {{t "people.n_errors" (count .Totals.Errors)}}{{end}}
{{if and .HasStats .Stats.Requests}}{{with .Stats}}{{t "people.nothing_used"}}
{{end}} {{end}} {{end}}