From a3917cc07c761cad6d0acfcf2786e8f2db7e3eb8 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 7 Dec 2022 10:16:22 +0800 Subject: [PATCH] fix issue --- templates/repo/cloudbrain/show.tmpl | 48 ++++++----------------- templates/repo/grampus/notebook/show.tmpl | 42 ++++++++------------ 2 files changed, 29 insertions(+), 61 deletions(-) diff --git a/templates/repo/cloudbrain/show.tmpl b/templates/repo/cloudbrain/show.tmpl index cb805b966..9ff1e189a 100755 --- a/templates/repo/cloudbrain/show.tmpl +++ b/templates/repo/cloudbrain/show.tmpl @@ -104,17 +104,6 @@ - - - {{$.i18n.Tr "cloudbrain.task_type"}} - - -
- {{.JobType}} -
- - {{$.i18n.Tr "repo.modelarts.code_version"}} @@ -139,22 +128,29 @@ - {{$.i18n.Tr "cloudbrain.gpu_type"}} + {{$.i18n.Tr "repo.modelarts.createtime"}} - -
+ +
+ {{TimeSinceUnix1 .CreatedUnix}} +
- {{$.i18n.Tr "repo.modelarts.createtime"}} + {{$.i18n.Tr "repo.cloudbrain.time.starttime"}}
- {{TimeSinceUnix1 .CreatedUnix}} + id="{{.VersionName}}-startTime"> + {{if not (eq .StartTime 0)}} + {{TimeSinceUnix1 .StartTime}} + {{else}} + -- + {{end}}
@@ -246,23 +242,6 @@ - - - {{$.i18n.Tr "repo.cloudbrain.time.starttime"}} - - - -
- {{if not (eq .StartTime 0)}} - {{TimeSinceUnix1 .StartTime}} - {{else}} - -- - {{end}} -
- - - {{$.i18n.Tr "repo.cloudbrain.time.endtime"}} @@ -420,6 +399,5 @@ shared_memory: {{$.i18n.Tr "cloudbrain.shared_memory"}}, }); $('td.ti-text-form-content.spec div').text(specStr); - SPEC && $('td.ti-text-form-content.resorce_type div').text(getListValueWithKey(ACC_CARD_TYPE, SPEC.AccCardType)); })(); \ No newline at end of file diff --git a/templates/repo/grampus/notebook/show.tmpl b/templates/repo/grampus/notebook/show.tmpl index 9aef094fb..6ee4b7aec 100644 --- a/templates/repo/grampus/notebook/show.tmpl +++ b/templates/repo/grampus/notebook/show.tmpl @@ -120,22 +120,31 @@ - {{$.i18n.Tr "cloudbrain.gpu_type"}} + {{$.i18n.Tr "repo.modelarts.createtime"}} - -
+ +
+ {{TimeSinceUnix1 .CreatedUnix}} +
- {{$.i18n.Tr "repo.modelarts.createtime"}} + {{$.i18n.Tr "repo.cloudbrain.time.starttime"}} -
- {{TimeSinceUnix1 .CreatedUnix}} +
+
+ {{if not (eq .StartTime 0)}} + {{TimeSinceUnix1 .StartTime}} + {{else}} + -- + {{end}} +
@@ -242,25 +251,6 @@
- - - {{$.i18n.Tr "repo.cloudbrain.time.starttime"}} - - - -
-
- {{if not (eq .StartTime 0)}} - {{TimeSinceUnix1 .StartTime}} - {{else}} - -- - {{end}} -
-
- - - {{$.i18n.Tr "repo.cloudbrain.time.endtime"}}