mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Move UI middlewares and routes to ui package
This commit is contained in:
parent
0925899cee
commit
5a69a61d48
70 changed files with 739 additions and 769 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue