From ca6c0ad73b37a1e77fafc0a8dede5207fed504d1 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sat, 29 Oct 2016 17:41:43 -0700 Subject: adding db procedures and updating handler for external submissions / pending content --- system/admin/handlers.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'system') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 181478a..8e52e91 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -640,7 +640,6 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { switch status { case "public", "": - html += `
Status: Public @@ -649,6 +648,9 @@ func postsHandler(res http.ResponseWriter, req *http.Request) {
` case "pending": + // get _pending posts of type t from the db + posts = db.ContentAll(t + "_pending") + html += `
Status: Public @@ -657,9 +659,6 @@ func postsHandler(res http.ResponseWriter, req *http.Request) {
` } - // get _pending posts of type t from the db - posts = db.ContentAll(t + "_pending") - } html += `