Browse Source

add url param

tags/v1.21.12.2^2
lewis 3 years ago
parent
commit
68994a1525
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      routers/repo/modelarts.go

+ 3
- 1
routers/repo/modelarts.go View File

@@ -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


Loading…
Cancel
Save