From 579cc9259a7761610a9997f2e0f390716b98e454 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 5 Dec 2016 11:41:12 -0800 Subject: updating offset math to include +1 as it is comparing the next set, html updates --- system/admin/handlers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 81b8723..25de560 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -965,7 +965,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { prevStatus = statusDisabled } // nothing after current list - if offset*count >= total { + if (offset+1)*count >= total { nextStatus = statusDisabled } @@ -978,9 +978,9 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { pagination := fmt.Sprintf(` `, prevStatus, prevURL, start, end, total, nextStatus, nextURL) -- cgit v1.2.3