|
|
@ -75,9 +75,13 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { |
|
|
|
} |
|
|
|
} |
|
|
|
count = opts.Counter(opts.Private) |
|
|
|
count = opts.Counter(opts.Private) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
var ctxUserID int64 |
|
|
|
|
|
|
|
if ctx.IsSigned { |
|
|
|
|
|
|
|
ctxUserID = ctx.User.ID |
|
|
|
|
|
|
|
} |
|
|
|
repos, count, err = models.SearchRepositoryByName(&models.SearchRepoOptions{ |
|
|
|
repos, count, err = models.SearchRepositoryByName(&models.SearchRepoOptions{ |
|
|
|
Keyword: keyword, |
|
|
|
Keyword: keyword, |
|
|
|
UserID: ctx.User.ID, |
|
|
|
UserID: ctxUserID, |
|
|
|
OrderBy: opts.OrderBy, |
|
|
|
OrderBy: opts.OrderBy, |
|
|
|
Private: opts.Private, |
|
|
|
Private: opts.Private, |
|
|
|
Page: page, |
|
|
|
Page: page, |
|
|
|