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