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}}