|
|
|
@@ -171,6 +171,11 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { |
|
|
|
ctx.ServerError("SearchRepository", err) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
for _, repo := range repos { |
|
|
|
repo.Hot = int64(repo.NumWatches) + int64(repo.NumStars) + int64(repo.NumForks) + int64(repo.CloneCnt) |
|
|
|
repo.Active = int64(repo.NumIssues) + int64(repo.NumPulls) + int64(repo.NumCommit) |
|
|
|
} |
|
|
|
ctx.Data["Keyword"] = keyword |
|
|
|
ctx.Data["Total"] = count |
|
|
|
ctx.Data["Repos"] = repos |
|
|
|
|