From 3029762bcf4e242bb3e83431ac20fc40d2677bf0 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 7 Dec 2022 10:45:36 +0800 Subject: [PATCH] fix issue --- templates/repo/grampus/notebook/show.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/repo/grampus/notebook/show.tmpl b/templates/repo/grampus/notebook/show.tmpl index 74f46b9ac..83d2eeb7f 100644 --- a/templates/repo/grampus/notebook/show.tmpl +++ b/templates/repo/grampus/notebook/show.tmpl @@ -361,6 +361,7 @@ {{$.i18n.Tr "dataset.download_url"}} {{$.i18n.Tr "dataset.download_oper"}} {{end}} + {{$Resource := .ComputeResource}} {{range $.datasetDownload}} @@ -372,9 +373,9 @@ {{.DatasetName}} {{end}} - {{if .DatasetDownloadLink}} + {{if eq $Resource "NPU"}}
{{.DatasetDownloadLink}}
- {{$.i18n.Tr "dataset.download_copy"}} + {{if .DatasetDownloadLink}}{{$.i18n.Tr "dataset.download_copy"}}{{end}} {{end}} {{end}}