diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/admin/handlers.go | 7 |
1 files changed, 3 insertions, 4 deletions
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 += `<div class="row externalable"> <span class="description">Status:</span> <span class="active">Public</span> @@ -649,6 +648,9 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { </div>` case "pending": + // get _pending posts of type t from the db + posts = db.ContentAll(t + "_pending") + html += `<div class="row externalable"> <span class="description">Status:</span> <a href="` + publicURL + `">Public</a> @@ -657,9 +659,6 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { </div>` } - // get _pending posts of type t from the db - posts = db.ContentAll(t + "_pending") - } html += `<ul class="posts row">` |