From fe749601b607dc0b7dcf588ab34bb32972c66355 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 7 Dec 2022 11:36:32 +0800 Subject: [PATCH] fix issue --- templates/repo/grampus/notebook/show.tmpl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/templates/repo/grampus/notebook/show.tmpl b/templates/repo/grampus/notebook/show.tmpl index 1efd2e6b5..027c6447c 100644 --- a/templates/repo/grampus/notebook/show.tmpl +++ b/templates/repo/grampus/notebook/show.tmpl @@ -388,19 +388,18 @@ {{$.i18n.Tr "dataset.download_oper"}} - {{range $.modelDownload}} + - {{if eq .IsDelete true}} - {{.Name}}({{$.i18n.Tr "dataset.file_deleted"}}) + {{if eq $.modelDownload.IsDelete true}} + {{$.modelDownload.Name}}({{$.i18n.Tr "dataset.file_deleted"}}) {{else}} - {{.Name}} + {{$.modelDownload.Name}} {{end}} -
{{.DownloadLink}}
- {{if .DownloadLink}}{{$.i18n.Tr "dataset.download_copy"}}{{end}} +
{{$.modelDownload.DownloadLink}}
+ {{if $.modelDownload.DownloadLink}}{{$.i18n.Tr "dataset.download_copy"}}{{end}} - {{end}} {{end}}