Versions 版本管理
()
| 1177 | |
| 1178 | // Versions 版本管理 |
| 1179 | func (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 版本管理 |
| 1197 | func (this *ManagerController) DeleteVersion() { |
nothing calls this directly
no test coverage detected