diff --git a/models/repo/repo_list.go b/models/repo/repo_list.go index 95eca362350..268723787e5 100644 --- a/models/repo/repo_list.go +++ b/models/repo/repo_list.go @@ -169,8 +169,8 @@ type SearchRepoOptions struct { // False -> include just public IsPrivate optional.Option[bool] // None -> include collaborative AND non-collaborative - // True -> include just collaborative - // False -> include just non-collaborative + // True -> include just collaborative (the "OwnerID" is not really an owner, it just means a collaborator who doesn't own the repo) + // False -> include just non-collaborative (the repo must be in the owner's name space) Collaborate optional.Option[bool] // What type of unit the user can be collaborative in, // it is ignored if Collaborate is False. diff --git a/options/locale/locale_en-US.json b/options/locale/locale_en-US.json index aca025044eb..14a88aedda0 100644 --- a/options/locale/locale_en-US.json +++ b/options/locale/locale_en-US.json @@ -1072,6 +1072,8 @@ "repo.desc.internal": "Internal", "repo.desc.archived": "Archived", "repo.desc.sha256": "SHA256", + "repo.switch_repository": "Switch repository", + "repo.switch_repository.search": "Search repositories...", "repo.template.items": "Template Items", "repo.template.git_content": "Git Content (Default Branch)", "repo.template.git_hooks": "Git Hooks", diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index e5426cde462..bee08e53a50 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -7,6 +7,18 @@ {{template "repo/icon" .}}
{{.Owner.Name}}/{{.Name}} + {{if $.IsSigned}}{{/* actually the switch also works for anonymous users, GitHub only shows it for sign-in users */}} + + {{end}}
{{if .IsArchived}} diff --git a/templates/repo/issue/sidebar/issue_dependencies.tmpl b/templates/repo/issue/sidebar/issue_dependencies.tmpl index 58dd61fb696..37245f48f6b 100644 --- a/templates/repo/issue/sidebar/issue_dependencies.tmpl +++ b/templates/repo/issue/sidebar/issue_dependencies.tmpl @@ -111,7 +111,7 @@
-