diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index a996524d2..a1c754951 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -1011,6 +1011,9 @@ func TrainJobShow(ctx *context.Context) { } } + pager := context.NewPagination(VersionListCount, setting.UI.IssuePagingNum, page, 5) + pager.SetDefaultParams(ctx) + ctx.Data["Page"] = pager ctx.Data["jobID"] = jobID ctx.Data["jobName"] = VersionListTasks[0].JobName ctx.Data["version_list_task"] = VersionListTasks diff --git a/templates/repo/modelarts/trainjob/show.tmpl b/templates/repo/modelarts/trainjob/show.tmpl index 030a27325..98e13ad67 100755 --- a/templates/repo/modelarts/trainjob/show.tmpl +++ b/templates/repo/modelarts/trainjob/show.tmpl @@ -449,7 +449,7 @@ td, th { - {{end}} + {{end}} {{template "base/paginate" .}}