From 83e0095de7091816080a9b7e70ef09c84cdbbb42 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sat, 29 Oct 2016 20:22:18 -0700 Subject: support to delete _pending content items --- system/admin/handlers.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'system') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 9eeb1b2..f7460a3 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -677,7 +677,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { continue } - post := adminPostListItem(p, t, "_pending") + post := adminPostListItem(p, t, "pending") b.Write(post) } } else { @@ -710,7 +710,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { continue } - post := adminPostListItem(p, t, "_pending") + post := adminPostListItem(p, t, "pending") b.Write(post) } } else { @@ -763,7 +763,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { // adminPostListItem is a helper to create the li containing a post. // p is the asserted post as an Editable, t is the Type of the post. // specifier is passed to append a name to a namespace like _pending -func adminPostListItem(p editor.Editable, t, specifier string) []byte { +func adminPostListItem(p editor.Editable, t, status string) []byte { s, ok := p.(editor.Sortable) if !ok { log.Println("Content type", t, "doesn't implement editor.Sortable") @@ -781,14 +781,14 @@ func adminPostListItem(p editor.Editable, t, specifier string) []byte { post := `
  • - ` + p.ContentName() + ` + ` + p.ContentName() + ` Updated: ` + updatedTime + ` ` + publishTime + `
    Delete - +
  • ` -- cgit v1.2.3