summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-29 17:41:43 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-29 17:41:43 -0700
commitca6c0ad73b37a1e77fafc0a8dede5207fed504d1 (patch)
tree685b157d8b932c05abfa243882ccbe99a43d8264
parentffa19ffc49ac11c426d29b543e3df26d3de61ec8 (diff)
adding db procedures and updating handler for external submissions / pending content
-rw-r--r--system/admin/handlers.go7
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">`