From 661325dcb70f8195d1ba041c0e579c36e2dc1054 Mon Sep 17 00:00:00 2001 From: liuzx Date: Tue, 23 Nov 2021 15:17:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=AD=E7=BB=83=E7=89=88=E6=9C=AC=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/repo/modelarts.go | 3 +++ templates/repo/modelarts/trainjob/show.tmpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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" .}}