{{define "title"}}Username history · MeshTender{{end}} {{define "header"}}
Administration

Username history

{{end}} {{/* history-body is the rename table, shared by the full page and the modal. */}} {{define "history-body"}} {{if .Changes}}
{{range .Changes}} {{end}}
WhenChangeByIP
{{ts .ChangedAt "datetime"}} @{{.OldUsername}}@{{.NewUsername}} {{if .BySelf}}self{{else if .ByActor}}admin (@{{.ByActor}}){{else}}admin{{end}} {{if .IP}}{{.IP}}{{else}}—{{end}}
{{else}}

This user has never changed their username.

{{end}} {{end}} {{/* history-modal is the htmx fragment swapped into the shared modal's content. */}} {{define "history-modal"}} {{end}} {{define "content"}}

Rename history for {{.Account.Name}} @{{.Account.Username}} (user #{{.Account.ID}}). This record is visible to user managers only — old usernames are never shown on public or member-facing pages.

{{template "history-body" .}}
{{template "icon-arrow-left" "me-1"}}Users {{end}}