From 5157f0c556acb5971be3966e5928f1ee4d98b3f9 Mon Sep 17 00:00:00 2001 From: yan Date: Mon, 1 Jun 2020 11:25:10 +0800 Subject: [PATCH] Remove the method of delete the dataset --- routers/routes/routes.go | 2 +- templates/admin/dataset/list.tmpl | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index c48011ca9..fa2723df8 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -467,7 +467,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/datasets", func() { m.Get("", admin.Datasets) - m.Post("/delete", admin.DeleteDataset) + // m.Post("/delete", admin.DeleteDataset) }) m.Group("/^:configType(hooks|system-hooks)$", func() { diff --git a/templates/admin/dataset/list.tmpl b/templates/admin/dataset/list.tmpl index 0aa9a2895..1044e4c28 100644 --- a/templates/admin/dataset/list.tmpl +++ b/templates/admin/dataset/list.tmpl @@ -14,7 +14,6 @@ ID - {{.i18n.Tr "admin.datasets.owner"}} {{.i18n.Tr "admin.datasets.name"}} {{.i18n.Tr "admin.datasets.private"}} {{.i18n.Tr "admin.users.created"}} @@ -25,16 +24,10 @@ {{range .Datasets}} {{.ID}} - - {{.User.Name}} - {{if .User.Visibility.IsPrivate}} - {{svg "octicon-lock" 16}} - {{end}} - {{.Title}} {{.CreatedUnix.FormatShort}} - + {{end}}