From 631fbefe6166756af7053debee0753a9b435c982 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sat, 29 Oct 2016 14:17:15 -0700 Subject: changing copy and testing fix for public/private listing of content --- system/admin/handlers.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'system') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index b511339..a477647 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -627,30 +627,30 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { ` if hasExt { - created := q.Get("created") + status := q.Get("status") - q.Set("created", "internal") - intURL := strings.TrimPrefix(req.URL.String(), req.URL.Scheme+req.URL.Host) + req.Form.Set("status", "public") + publicURL := strings.TrimPrefix(req.URL.String(), req.URL.Scheme+req.URL.Host) - q.Set("created", "external") - extURL := strings.TrimPrefix(req.URL.String(), req.URL.Scheme+req.URL.Host) + req.Form.Set("status", "pending") + pendingURL := strings.TrimPrefix(req.URL.String(), req.URL.Scheme+req.URL.Host) - switch created { - case "internal": + switch status { + case "public", "": html += `
- Created by: - Internal + Status: + Public  |  - External + Pending
` - case "external": + case "pending": html += `
- Created by: - Internal + Status: + Public  |  - External + Pending
` } -- cgit v1.2.3