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

Method SubmitBook

controllers/ManagerController.go:1144–1157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1142}
1143
1144func (this *ManagerController) SubmitBook() {
1145 this.TplName = "manager/submit_book.html"
1146 m := models.NewSubmitBooks()
1147 page, _ := this.GetInt("page", 1)
1148 size, _ := this.GetInt("size", 100)
1149 books, total, _ := m.Lists(page, size)
1150 if total > 0 {
1151 this.Data["PageHtml"] = utils.NewPaginations(conf.RollPage, int(total), size, page, beego.URLFor("ManagerController.SubmitBook"), "")
1152 } else {
1153 this.Data["PageHtml"] = ""
1154 }
1155 this.Data["Books"] = books
1156 this.Data["IsSubmitBook"] = true
1157}
1158
1159func (this *ManagerController) DeleteSubmitBook() {
1160 id, _ := this.GetInt("id")

Callers

nothing calls this directly

Calls 3

ListsMethod · 0.95
NewSubmitBooksFunction · 0.92
NewPaginationsFunction · 0.92

Tested by

no test coverage detected