feat(runner-view): add pagination for jobs in runner details page

This commit is contained in:
fuxiaohei authored and Jason Song committed 2022-11-25 17:48:47 +08:00
1 parent 0c3f283a84
commit e218b6f1d2
4 files changed
+35 -7

No files matched your search

+6 -1
View File
@@ -54,7 +54,12 @@ func EditRunner(ctx *context.Context) {
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminRunners"] = true
common.RunnerDetails(ctx, tplRunnerEdit, ctx.ParamsInt64(":runnerid"), 0, 0)
page := ctx.FormInt("page")
if page <= 1 {
page = 1
}
common.RunnerDetails(ctx, tplRunnerEdit, page, ctx.ParamsInt64(":runnerid"), 0, 0)
}
// EditRunnerPost response for editing runner