diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index f8d0a6203..08a4f6c11 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -1010,20 +1010,12 @@ func TrainJobShow(ctx *context.Context) { } ctx.Data["jobID"] = jobID + ctx.Data["jobName"] = VersionListTasks[0].JobName ctx.Data["version_list_task"] = VersionListTasks ctx.Data["version_list_count"] = VersionListCount ctx.HTML(http.StatusOK, tplModelArtsTrainJobShow) } -// func addZero(t int64) (m string) { -// if t < 10 { -// m = "0" + strconv.FormatInt(t, 10) -// return m -// } else { -// return strconv.FormatInt(t, 10) -// } -// } - func TrainJobGetLog(ctx *context.Context) { ctx.Data["PageIsTrainJob"] = true