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

Method Version

controllers/ManagerController.go:1179–1194  ·  view source on GitHub ↗

Versions 版本管理

()

Source from the content-addressed store, hash-verified

1177
1178// Versions 版本管理
1179func (this *ManagerController) Version() {
1180 m := models.NewVersion()
1181 wd := this.GetString("wd")
1182 page, _ := this.GetInt("page", 1)
1183 size := 10
1184 versions, total := m.Lists(page, size, wd)
1185 if total > 0 {
1186 this.Data["PageHtml"] = utils.NewPaginations(conf.RollPage, int(total), size, page, beego.URLFor("ManagerController.Version"), "&wd="+wd)
1187 } else {
1188 this.Data["PageHtml"] = ""
1189 }
1190 this.Data["Versions"] = versions
1191 this.Data["Wd"] = wd
1192 this.Data["IsManagerVersion"] = true
1193 this.TplName = "manager/version.html"
1194}
1195
1196// Versions 版本管理
1197func (this *ManagerController) DeleteVersion() {

Callers

nothing calls this directly

Calls 3

ListsMethod · 0.95
NewVersionFunction · 0.92
NewPaginationsFunction · 0.92

Tested by

no test coverage detected