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

Method Sitemap

controllers/BaseController.go:308–322  ·  view source on GitHub ↗

站点地图

()

Source from the content-addressed store, hash-verified

306
307// 站点地图
308func (this *BaseController) Sitemap() {
309 this.Data["SeoTitle"] = "站点地图 - " + this.Sitename
310 page, _ := this.GetInt("page")
311 listRows := 100
312 totalCount, docs := models.SitemapData(page, listRows)
313 if totalCount > 0 {
314 html := utils.GetPagerHtml(this.Ctx.Request.RequestURI, page, listRows, int(totalCount))
315 this.Data["PageHtml"] = html
316 } else {
317 this.Data["PageHtml"] = ""
318 }
319 //this.JsonResult(0, "aaa", docs)
320 this.Data["Docs"] = docs
321 this.TplName = "widgets/sitemap.html"
322}
323
324func (this *BaseController) loginByMemberId(memberId int) (err error) {
325 member, err := models.NewMember().Find(memberId)

Callers

nothing calls this directly

Calls 2

SitemapDataFunction · 0.92
GetPagerHtmlFunction · 0.92

Tested by

no test coverage detected