From c0fdcaa261fd5606b271e7cd99d49a60a7f2dbd6 Mon Sep 17 00:00:00 2001 From: colorfulberry Date: Sun, 28 Jun 2020 15:52:26 +0800 Subject: [PATCH] feat: fixing the pages for the dropzone --- templates/repo/datasets/index.tmpl | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/templates/repo/datasets/index.tmpl b/templates/repo/datasets/index.tmpl index 11aa49c62..fbf386ec9 100644 --- a/templates/repo/datasets/index.tmpl +++ b/templates/repo/datasets/index.tmpl @@ -5,20 +5,22 @@ {{.CsrfTokenHtml}} {{template "base/alert" .}} -
-
-

{{.dataset.Title}}

-
- {{.dataset.Description}} +
+
+
+

{{.dataset.Title}}

+
+ {{.dataset.Description}} +
+ {{if .Permission.CanWrite $.UnitTypeDatasets}} + + {{end}}
- {{if .Permission.CanWrite $.UnitTypeDatasets}} - - {{end}}