|
|
|
@@ -42,6 +42,7 @@ const ( |
|
|
|
|
|
|
|
func DebugJobIndex(ctx *context.Context) { |
|
|
|
debugListType := ctx.Query("debugListType") |
|
|
|
ctx.Data["ListType"] = debugListType |
|
|
|
MustEnableCloudbrain(ctx) |
|
|
|
repo := ctx.Repo.Repository |
|
|
|
page := ctx.QueryInt("page") |
|
|
|
@@ -84,7 +85,8 @@ func DebugJobIndex(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
pager := context.NewPagination(int(count), setting.UI.IssuePagingNum, page, 5) |
|
|
|
pager.SetDefaultParams(ctx) |
|
|
|
//pager.SetDefaultParams(ctx) |
|
|
|
pager.AddParam(ctx, "debugListType", "ListType") |
|
|
|
ctx.Data["Page"] = pager |
|
|
|
ctx.Data["PageIsCloudBrain"] = true |
|
|
|
ctx.Data["Tasks"] = ciTasks |
|
|
|
|