From a4ea05259072feaba526110db38ad8ea49836efd Mon Sep 17 00:00:00 2001 From: liuzx Date: Fri, 10 Dec 2021 18:19:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=89=8D=E7=AB=AF=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E4=BB=93=E5=BA=93=E6=98=AF=E5=90=A6=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/repo/modelarts.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index 1d8323000..920205334 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -92,6 +92,7 @@ func DebugJobIndex(ctx *context.Context) { ctx.Data["PageIsCloudBrain"] = true ctx.Data["Tasks"] = ciTasks ctx.Data["CanCreate"] = cloudbrain.CanCreateOrDebugJob(ctx) + ctx.Data["RepoIsEmpty"] = repo.IsEmpty ctx.HTML(200, tplDebugJobIndex) } @@ -331,6 +332,7 @@ func TrainJobIndex(ctx *context.Context) { ctx.Data["PageIsCloudBrain"] = true ctx.Data["Tasks"] = tasks ctx.Data["CanCreate"] = cloudbrain.CanCreateOrDebugJob(ctx) + ctx.Data["RepoIsEmpty"] = repo.IsEmpty ctx.HTML(200, tplModelArtsTrainJobIndex) }