{{template "base/alert" .}}
{{.i18n.Tr "settings.repos"}}
{{if or .allowAdopt .allowDelete}}
{{if .Dirs}}
{{range $dirI, $dir := .Dirs}}
{{ $repo := index $.ReposMap $dir}}
{{end}}
{{template "base/paginate" .}}
{{else}}
{{if $repo}}
{{if $repo.IsPrivate}}
{{svg "octicon-lock"}}
{{else if $repo.IsFork}}
{{svg "octicon-repo-forked"}}
{{else if $repo.IsMirror}}
{{svg "octicon-mirror"}}
{{else if $repo.IsTemplate}}
{{svg "octicon-repo-template"}}
{{else}}
{{svg "octicon-repo"}}
{{end}}
{{$repo.OwnerName}}/{{$repo.Name}}
{{FileSize $repo.Size}}
{{if $repo.IsFork}}
{{$.i18n.Tr "repo.forked_from"}}
{{$repo.BaseRepo.OwnerName}}/{{$repo.BaseRepo.Name}}
{{end}}
{{else}}
{{svg "octicon-file-directory-fill"}}
{{$.Owner.Name}}/{{$dir}}
{{if $.allowAdopt}}
{{end}}
{{svg "octicon-x" 16 "close inside"}}
{{end}}
{{if $.allowDelete}}
{{$.i18n.Tr "repo.adopt_preexisting"}}
{{$.i18n.Tr "repo.adopt_preexisting_content" $dir}}
{{svg "octicon-x" 16 "close inside"}}
{{end}}
{{$.i18n.Tr "repo.delete_preexisting"}}
{{$.i18n.Tr "repo.delete_preexisting_content" $dir}}
{{.i18n.Tr "settings.repos_none"}}
{{end}}
{{else}}
{{if .Repos}}
{{range .Repos}}
{{end}}
{{template "base/paginate" .}}
{{else}}
{{if .IsPrivate}}
{{svg "octicon-lock"}}
{{else if .IsFork}}
{{svg "octicon-repo-forked"}}
{{else if .IsMirror}}
{{svg "octicon-mirror"}}
{{else if .IsTemplate}}
{{svg "octicon-repo-template"}}
{{else}}
{{svg "octicon-repo"}}
{{end}}
{{.OwnerName}}/{{.Name}}
{{FileSize .Size}}
{{if .IsFork}}
{{$.i18n.Tr "repo.forked_from"}}
{{.BaseRepo.OwnerName}}/{{.BaseRepo.Name}}
{{end}}
{{.i18n.Tr "settings.repos_none"}}
{{end}}
{{end}}