summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-29 14:17:15 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-29 14:17:15 -0700
commit631fbefe6166756af7053debee0753a9b435c982 (patch)
tree5536868743fd064c736a29aee1817d9be097fdb3
parentec0c753e8386d0dabe6c65ffb9d26484fa361eb0 (diff)
changing copy and testing fix for public/private listing of content
-rw-r--r--system/admin/handlers.go28
1 files changed, 14 insertions, 14 deletions
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) {
</form>
</div>`
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 += `<div class="row externalable">
- Created by:
- <a class="active" href="` + intURL + `">Internal</a>
+ Status:
+ <span class="active">Public</span>
&nbsp;&vert;&nbsp;
- <a href="` + extURL + `">External</a>
+ <a href="` + pendingURL + `">Pending</a>
</div>`
- case "external":
+ case "pending":
html += `<div class="row externalable">
- Created by:
- <a href="` + intURL + `">Internal</a>
+ Status:
+ <a href="` + publicURL + `">Public</a>
&nbsp;&vert;&nbsp;
- <a class="active" href="` + extURL + `">External</a>
+ <span class="active">Pending</span>
</div>`
}