remove collaborative repositories from search on user profiles (#3996)
* remove collaborative repositories from search on user profiles * rename 'My Repositories' to 'Repositories'
This commit is contained in:
parent
08c9617caa
commit
31067c0a89
|
@ -168,7 +168,7 @@ no_reply_address_helper = Domain name for users with a hidden email address. For
|
||||||
uname_holder = Username or Email Address
|
uname_holder = Username or Email Address
|
||||||
password_holder = Password
|
password_holder = Password
|
||||||
switch_dashboard_context = Switch Dashboard Context
|
switch_dashboard_context = Switch Dashboard Context
|
||||||
my_repos = My Repositories
|
my_repos = Repositories
|
||||||
show_more_repos = Show more repositories…
|
show_more_repos = Show more repositories…
|
||||||
collaborative_repos = Collaborative Repositories
|
collaborative_repos = Collaborative Repositories
|
||||||
my_orgs = My Organizations
|
my_orgs = My Organizations
|
||||||
|
|
|
@ -201,13 +201,14 @@ func Profile(ctx *context.Context) {
|
||||||
ctx.Data["Total"] = total
|
ctx.Data["Total"] = total
|
||||||
} else {
|
} else {
|
||||||
repos, count, err = models.SearchRepositoryByName(&models.SearchRepoOptions{
|
repos, count, err = models.SearchRepositoryByName(&models.SearchRepoOptions{
|
||||||
Keyword: keyword,
|
Keyword: keyword,
|
||||||
OwnerID: ctxUser.ID,
|
OwnerID: ctxUser.ID,
|
||||||
OrderBy: orderBy,
|
OrderBy: orderBy,
|
||||||
Private: showPrivate,
|
Private: showPrivate,
|
||||||
Page: page,
|
Page: page,
|
||||||
IsProfile: true,
|
IsProfile: true,
|
||||||
PageSize: setting.UI.User.RepoPagingNum,
|
PageSize: setting.UI.User.RepoPagingNum,
|
||||||
|
Collaborate: util.OptionalBoolFalse,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.ServerError("SearchRepositoryByName", err)
|
ctx.ServerError("SearchRepositoryByName", err)
|
||||||
|
|
Loading…
Reference in a new issue