From 5a69a61d4841a35d7ddcb761a688db8c688314d6 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 11 Nov 2018 11:28:29 -0800 Subject: Move UI middlewares and routes to ui package --- ui/pagination.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/pagination.go') diff --git a/ui/pagination.go b/ui/pagination.go index 5fdf715..7534431 100644 --- a/ui/pagination.go +++ b/ui/pagination.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/ui" const ( nbItemsPerPage = 100 @@ -20,7 +20,7 @@ type pagination struct { SearchQuery string } -func (c *Controller) getPagination(route string, total, offset int) pagination { +func getPagination(route string, total, offset int) pagination { nextOffset := 0 prevOffset := 0 showNext := (total - offset) > nbItemsPerPage -- cgit v1.2.3