{{define "content"}}
{{if .ProfileUser}}
{{avatarInitial .ProfileUser.Username}}

{{.ProfileUser.Username}}

{{if .ProfileUser.IsAdmin}} {{t .Lang "admin.role.admin"}} {{end}}
{{if .ProfileUser.Bio}}

{{.ProfileUser.Bio}}

{{end}}
{{if .CurrentUser}} {{if eq .CurrentUser.ID .ProfileUser.ID}} {{icon "settings" "size-3.5"}} {{t .Lang "nav.settings"}} {{end}} {{end}}
{{end}}

{{.PageHeading}}

{{if .Repos}}
{{range .Repos}}
{{if .IsPrivate}} {{icon "lock" "size-4"}} {{else}} {{icon "git-branch" "size-4"}} {{end}} {{.OwnerUsername}} / {{.Name}} {{if .IsPrivate}} {{t $.Lang "repo.private"}} {{end}} {{if .Description}} — {{.Description}} {{end}}
{{.DefaultBranch}} {{timeAgo .UpdatedAt $.Lang}}
{{end}}
{{else}} {{if .CurrentUser}} {{template "ui_empty_state" (dict "Icon" "git-branch" "Title" (t .Lang "repo.empty_list") "Subtitle" (t .Lang "repo.empty_list_sub") "ActionHref" "/new" "ActionLabel" (t .Lang "repo.new.title") "ActionIcon" "plus")}} {{else}} {{template "ui_empty_state" (dict "Icon" "git-branch" "Title" (t .Lang "repo.empty_list"))}} {{end}} {{end}}
{{end}}