|
|
|
@@ -146,6 +146,7 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { |
|
|
|
orderBy = models.SearchOrderByRecentUpdated |
|
|
|
} |
|
|
|
|
|
|
|
//todo:support other topics |
|
|
|
keyword := strings.Trim(ctx.Query("q"), " ") |
|
|
|
topicOnly := ctx.QueryBool("topic") |
|
|
|
ctx.Data["TopicOnly"] = topicOnly |
|
|
|
@@ -179,6 +180,9 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { |
|
|
|
pager.AddParam(ctx, "topic", "TopicOnly") |
|
|
|
ctx.Data["Page"] = pager |
|
|
|
|
|
|
|
//todo: add recommend_orgs |
|
|
|
ctx.Data["RecommendOrgs"] = "" |
|
|
|
|
|
|
|
ctx.HTML(200, opts.TplName) |
|
|
|
} |
|
|
|
|
|
|
|
|