From f54003b42dee935a443d97c248d6a4d966cbfae4 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 27 Oct 2021 16:03:32 +0800 Subject: [PATCH] update --- templates/repo/modelarts/notebook/index.tmpl | 6 +++--- templates/repo/modelarts/trainjob/index.tmpl | 16 ++++++++-------- web_src/less/openi.less | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/repo/modelarts/notebook/index.tmpl b/templates/repo/modelarts/notebook/index.tmpl index 4d2c07386..ae268dd45 100755 --- a/templates/repo/modelarts/notebook/index.tmpl +++ b/templates/repo/modelarts/notebook/index.tmpl @@ -334,9 +334,9 @@ -
+ {{$.CsrfTokenHtml}} - + 删除
@@ -432,7 +432,7 @@ return } - $.get(`/api/v1/repos/${repoPath}/modelarts/${jobID}`, (data) => { + $.get(`/api/v1/repos/${repoPath}/modelarts/notebook/${jobID}`, (data) => { const jobID = data.JobID const status = data.JobStatus if (status != job.textContent.trim()) { diff --git a/templates/repo/modelarts/trainjob/index.tmpl b/templates/repo/modelarts/trainjob/index.tmpl index b91ad22ce..f6fbf9c51 100755 --- a/templates/repo/modelarts/trainjob/index.tmpl +++ b/templates/repo/modelarts/trainjob/index.tmpl @@ -328,11 +328,11 @@ - - {{.Status}} - + + {{.TrainJobDuration}} + - {{TimeSinceUnix .Cloudbrain.CreatedUnix $.Lang}} +
@@ -344,7 +344,7 @@
-
+
-
+ {{$.CsrfTokenHtml}} - + 删除
@@ -468,7 +468,7 @@ return } - $.get(`/api/v1/repos/${repoPath}/modelarts/${jobID}`, (data) => { + $.get(`/api/v1/repos/${repoPath}/modelarts/train-job/${jobID}`, (data) => { const jobID = data.JobID const status = data.JobStatus if (status != job.textContent.trim()) { diff --git a/web_src/less/openi.less b/web_src/less/openi.less index cf8ca6d27..21897daad 100644 --- a/web_src/less/openi.less +++ b/web_src/less/openi.less @@ -224,7 +224,7 @@ footer .column{margin-bottom:0!important; padding-bottom:0!important;} // icon cloudbrain .i-round{display:inline-block;width:18px;height:18px;background:url("/img/icons.svg");background-position: -496px -52px;} .i-bg-organ{background-position: -496px -52px;} -.STOPPED{display:inline-block;width:18px;height:18px;background:url("/img/icons.svg");background-position: -496px -52px;background-position: -459px -52px;} +.STOPPED, .KILLED{display:inline-block;width:18px;height:18px;background:url("/img/icons.svg");background-position: -496px -52px;background-position: -459px -52px;} .RUNNING{display:inline-block;width:18px;height:18px;background:url("/img/icons.svg");background-position: -496px -52px;background-position: -478px -52px;} .i-bg-orange{background-position: -495px -51px;} .FAILED{display:inline-block;width:18px;height:18px;background:url("/img/icons.svg");background-position: -496px -52px;background-position: -532px -52px;}