diff options
author | Steve <nilslice@gmail.com> | 2017-01-02 11:58:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-02 11:58:56 -0800 |
commit | 6f0d53777bcc792099113c7dbd1e5f0b012be562 (patch) | |
tree | c148636f245bb1efd4ce5b1f597519038da9816c /system/admin | |
parent | 806fdbe1e8839feb1bcc4e5e07aa7c144a429901 (diff) | |
parent | ae7d01f3aae28797f3b9ebc67be843763a02da6d (diff) |
Merge pull request #27 from ponzu-cms/ponzu-dev
[core] HTTP/2 Server Push for referenced items, Hideable interface
Diffstat (limited to 'system/admin')
-rw-r--r-- | system/admin/admin.go | 2 | ||||
-rw-r--r-- | system/admin/handlers.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go index 76f36f6..e3ae2d6 100644 --- a/system/admin/admin.go +++ b/system/admin/admin.go @@ -487,7 +487,7 @@ var analyticsHTML = ` <div class="analytics"> <div class="card"> <div class="card-content"> - <p class="right">Data range: {{ .from }} - {{ .to }} (GMT)</p> + <p class="right">Data range: {{ .from }} - {{ .to }} (UTC)</p> <div class="card-title">API Requests</div> <canvas id="analytics-chart"></canvas> <script> diff --git a/system/admin/handlers.go b/system/admin/handlers.go index ff30040..1ff7156 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -909,7 +909,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) { for i := range posts { err := json.Unmarshal(posts[i], &p) if err != nil { - log.Println("Error unmarshal json into", t, err, posts[i]) + log.Println("Error unmarshal json into", t, err, string(posts[i])) post := `<li class="col s12">Error decoding data. Possible file corruption.</li>` b.Write([]byte(post)) @@ -934,7 +934,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) { for i := len(posts) - 1; i >= 0; i-- { err := json.Unmarshal(posts[i], &p) if err != nil { - log.Println("Error unmarshal json into", t, err, posts[i]) + log.Println("Error unmarshal json into", t, err, string(posts[i])) post := `<li class="col s12">Error decoding data. Possible file corruption.</li>` b.Write([]byte(post)) @@ -950,7 +950,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) { for i := range posts { err := json.Unmarshal(posts[i], &p) if err != nil { - log.Println("Error unmarshal json into", t, err, posts[i]) + log.Println("Error unmarshal json into", t, err, string(posts[i])) post := `<li class="col s12">Error decoding data. Possible file corruption.</li>` b.Write([]byte(post)) |