+ {{template "base/alert" .}}
+
+
+ {{if or .allowAdopt .allowDelete}}
+ {{if .Dirs}}
+
+ {{range $dirI, $dir := .Dirs}}
+ {{$repo := index $.ReposMap $dir}}
+
+
+ {{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}}
+ {{$.locale.Tr "repo.forked_from"}}
+
{{$repo.BaseRepo.OwnerName}}/{{$repo.BaseRepo.Name}}
+ {{end}}
+ {{else}}
+
{{svg "octicon-file-directory-fill"}}
+
{{$.ContextUser.Name}}/{{$dir}}
+
+ {{if $.allowAdopt}}
+
+
{{svg "octicon-x" 16 "close inside"}}
-
{{$.locale.Tr "repo.delete_preexisting_content" $dir}}
+
{{$.locale.Tr "repo.adopt_preexisting_content" $dir}}
+
+
+
+
+
+ {{end}}
+ {{if $.allowDelete}}
+
+
+ {{svg "octicon-x" 16 "close inside"}}
+
+
+
{{$.locale.Tr "repo.delete_preexisting_content" $dir}}
+
+
+
+ {{end}}
{{end}}
- {{end}}
-
+
+ {{end}}
+
+ {{template "base/paginate" .}}
+ {{else}}
+
+ {{.locale.Tr "settings.repos_none"}}
{{end}}
-
- {{template "base/paginate" .}}
- {{else}}
-
- {{.locale.Tr "settings.repos_none"}}
-
- {{end}}
- {{else}}
- {{if .Repos}}
-
- {{range .Repos}}
+ {{else}}
+ {{if .Repos}}
+
+ {{range .Repos}}
+
+
+ {{if .IsPrivate}}
+ {{svg "octicon-lock" 16 "gt-mr-2 iconFloat text gold"}}
+ {{else if .IsFork}}
+ {{svg "octicon-repo-forked" 16 "gt-mr-2 iconFloat"}}
+ {{else if .IsMirror}}
+ {{svg "octicon-mirror" 16 "gt-mr-2 iconFloat"}}
+ {{else if .IsTemplate}}
+ {{svg "octicon-repo-template" 16 "gt-mr-2 iconFloat"}}
+ {{else}}
+ {{svg "octicon-repo" 16 "gt-mr-2 iconFloat"}}
+ {{end}}
+
{{.OwnerName}}/{{.Name}}
+
{{FileSize .Size}}
+ {{if .IsFork}}
+ {{$.locale.Tr "repo.forked_from"}}
+
{{.BaseRepo.OwnerName}}/{{.BaseRepo.Name}}
+ {{end}}
+
+
+ {{end}}
+
+ {{template "base/paginate" .}}
+ {{else}}
-
- {{if .IsPrivate}}
- {{svg "octicon-lock" 16 "gt-mr-2 iconFloat text gold"}}
- {{else if .IsFork}}
- {{svg "octicon-repo-forked" 16 "gt-mr-2 iconFloat"}}
- {{else if .IsMirror}}
- {{svg "octicon-mirror" 16 "gt-mr-2 iconFloat"}}
- {{else if .IsTemplate}}
- {{svg "octicon-repo-template" 16 "gt-mr-2 iconFloat"}}
- {{else}}
- {{svg "octicon-repo" 16 "gt-mr-2 iconFloat"}}
- {{end}}
-
{{.OwnerName}}/{{.Name}}
-
{{FileSize .Size}}
- {{if .IsFork}}
- {{$.locale.Tr "repo.forked_from"}}
-
{{.BaseRepo.OwnerName}}/{{.BaseRepo.Name}}
- {{end}}
-
+ {{.locale.Tr "settings.repos_none"}}
{{end}}
-
- {{template "base/paginate" .}}
- {{else}}
-
- {{.locale.Tr "settings.repos_none"}}
-
- {{end}}
- {{end}}
+ {{end}}
+