Browse Source

增加topic变量

tags/v1.21.12.1
ychao_1983 4 years ago
parent
commit
aaa4764143
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/home.go

+ 2
- 0
routers/home.go View File

@@ -176,6 +176,8 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
repo.Active = int64(repo.NumIssues) + int64(repo.NumPulls) + int64(repo.NumCommit)
}
ctx.Data["Keyword"] = keyword
ctx.Data["Topic"] = topic

ctx.Data["Total"] = count
ctx.Data["Repos"] = repos
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled


Loading…
Cancel
Save