From 8d57ab8a5d1984aa8d4a19021b2dee19d895bb8c Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 7 Dec 2022 12:01:00 +0800 Subject: [PATCH] fix issue --- templates/repo/grampus/notebook/show.tmpl | 25 ++++++++++++++++++++- templates/repo/modelarts/notebook/show.tmpl | 2 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/templates/repo/grampus/notebook/show.tmpl b/templates/repo/grampus/notebook/show.tmpl index 58e9bc14d..2b2c88bf5 100644 --- a/templates/repo/grampus/notebook/show.tmpl +++ b/templates/repo/grampus/notebook/show.tmpl @@ -380,7 +380,30 @@ {{end}} - + {{if eq .ComputeResource "NPU"}} + + + + + + + + + + + + + + + +
{{$.i18n.Tr "dataset.file"}}{{$.i18n.Tr "dataset.download_url"}}{{$.i18n.Tr "dataset.download_oper"}}
+ {{if eq $.modelDownload.IsDelete true}} + {{$.modelDownload.Name}}({{$.i18n.Tr "dataset.file_deleted"}}) + {{else}} + {{$.modelDownload.Name}} + {{end}} +
{{$.modelDownload.DownloadLink}}
{{if $.modelDownload.DownloadLink}}{{$.i18n.Tr "dataset.download_copy"}}{{end}}
+ {{end}} diff --git a/templates/repo/modelarts/notebook/show.tmpl b/templates/repo/modelarts/notebook/show.tmpl index 243d5a9cd..54b82e494 100755 --- a/templates/repo/modelarts/notebook/show.tmpl +++ b/templates/repo/modelarts/notebook/show.tmpl @@ -232,7 +232,7 @@ {{if eq .IsDelete true}} {{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}}) {{else}} - {{.DatasetName}} + {{.DatasetName}} {{end}}
{{.DatasetDownloadLink}}