Browse Source

Remove the method of delete the dataset

tags/vopendata0.1.2
yan 5 years ago
parent
commit
5157f0c556
2 changed files with 2 additions and 9 deletions
  1. +1
    -1
      routers/routes/routes.go
  2. +1
    -8
      templates/admin/dataset/list.tmpl

+ 1
- 1
routers/routes/routes.go View File

@@ -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() {


+ 1
- 8
templates/admin/dataset/list.tmpl View File

@@ -14,7 +14,6 @@
<thead>
<tr>
<th>ID</th>
<th>{{.i18n.Tr "admin.datasets.owner"}}</th>
<th>{{.i18n.Tr "admin.datasets.name"}}</th>
<th>{{.i18n.Tr "admin.datasets.private"}}</th>
<th>{{.i18n.Tr "admin.users.created"}}</th>
@@ -25,16 +24,10 @@
{{range .Datasets}}
<tr>
<td>{{.ID}}</td>
<td>
<a href="{{AppSubUrl}}/{{.User.Name}}">{{.User.Name}}</a>
{{if .User.Visibility.IsPrivate}}
<span class="text gold">{{svg "octicon-lock" 16}}</span>
{{end}}
</td>
<td><a href="{{AppSubUrl}}/">{{.Title}}</a></td>
<td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
<td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td>
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Title}}"><i class="trash icon text red"></i></a></td>
<td></td>
</tr>
{{end}}
</tbody>


Loading…
Cancel
Save