From 6bc374152a5362b3894523ac43721916d614195b Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 7 Dec 2022 10:23:22 +0800 Subject: [PATCH] fix issue --- templates/repo/cloudbrain/show.tmpl | 32 ++++++++--------- templates/repo/grampus/notebook/show.tmpl | 44 +++++++++++++++++++++-- 2 files changed, 57 insertions(+), 19 deletions(-) diff --git a/templates/repo/cloudbrain/show.tmpl b/templates/repo/cloudbrain/show.tmpl index 9ff1e189a..5563402b9 100755 --- a/templates/repo/cloudbrain/show.tmpl +++ b/templates/repo/cloudbrain/show.tmpl @@ -154,6 +154,22 @@ + + + {{$.i18n.Tr "repo.cloudbrain.time.endtime"}} + + + +
+ {{if not (eq .EndTime 0)}} + {{TimeSinceUnix1 .EndTime}} + {{else}} + -- + {{end}} +
+ + {{$.i18n.Tr "cloudbrain.description"}} @@ -242,22 +258,6 @@ - - - {{$.i18n.Tr "repo.cloudbrain.time.endtime"}} - - - -
- {{if not (eq .EndTime 0)}} - {{TimeSinceUnix1 .EndTime}} - {{else}} - -- - {{end}} -
- - {{$.i18n.Tr "repo.modelarts.train_job.dura_time"}} diff --git a/templates/repo/grampus/notebook/show.tmpl b/templates/repo/grampus/notebook/show.tmpl index 6ee4b7aec..aa52d2421 100644 --- a/templates/repo/grampus/notebook/show.tmpl +++ b/templates/repo/grampus/notebook/show.tmpl @@ -130,6 +130,7 @@ + {{if eq .ComputeResource "CPU/GPU"}} {{$.i18n.Tr "repo.cloudbrain.time.starttime"}} @@ -148,6 +149,23 @@ + + + {{$.i18n.Tr "repo.cloudbrain.time.endtime"}} + + + +
+ {{if not (eq .EndTime 0)}} + {{TimeSinceUnix1 .EndTime}} + {{else}} + -- + {{end}} +
+ + + {{end}} {{$.i18n.Tr "cloudbrain.description"}} @@ -195,6 +213,17 @@
+ + + {{$.i18n.Tr "repo.grampus.train_job.ai_center"}} + + + +
+ {{if .AiCenter}}{{.AiCenter}}{{else}}--{{end}} +
+ + {{if eq .ComputeResource "CPU/GPU"}} @@ -240,14 +269,22 @@ {{end}} + {{if eq .ComputeResource "NPU"}} - {{$.i18n.Tr "repo.grampus.train_job.ai_center"}} + {{$.i18n.Tr "repo.cloudbrain.time.starttime"}} -
- {{if .AiCenter}}{{.AiCenter}}{{else}}--{{end}} +
+
+ {{if not (eq .StartTime 0)}} + {{TimeSinceUnix1 .StartTime}} + {{else}} + -- + {{end}} +
@@ -267,6 +304,7 @@
+ {{end}} {{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}