MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Search

Method Search

controllers/SearchController.go:20–28  ·  view source on GitHub ↗

搜索首页

()

Source from the content-addressed store, hash-verified

18
19//搜索首页
20func (this *SearchController) Search() {
21 if wd := strings.TrimSpace(this.GetString("wd")); wd != "" {
22 this.Redirect(beego.URLFor("LabelController.Index", ":key", wd), 302)
23 return
24 }
25 this.Data["SeoTitle"] = "搜索 - " + this.Sitename
26 this.Data["IsSearch"] = true
27 this.TplName = "search/search.html"
28}
29
30// 搜索结果页
31func (this *SearchController) Result() {

Callers 3

ResultMethod · 0.45
SearchBookMethod · 0.45
SearchDocMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected