From e6417b3bd7d0489df97217cd5658a72a4c8a3b5c Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 9 Mar 2018 10:28:15 -0500 Subject: [PATCH] more --- contrib/backends/srndv2/src/srnd/templates_impl.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/templates_impl.go b/contrib/backends/srndv2/src/srnd/templates_impl.go index 1f7e3b9..b84edb0 100644 --- a/contrib/backends/srndv2/src/srnd/templates_impl.go +++ b/contrib/backends/srndv2/src/srnd/templates_impl.go @@ -292,9 +292,7 @@ func (self *templateEngine) genUkkoPaginated(prefix, frontend string, wr io.Writ if page > 0 { obj["prev"] = map[string]interface{}{"no": page - 1} } - if invertPagination { - obj["next"] = map[string]interface{}{"no": page + 1} - } else if page < 10 { + if page < pages { obj["next"] = map[string]interface{}{"no": page + 1} } if json {