Misc paginator adjustments

* Rewind paginator for server mode
* Add some more related tests.
* Replace the clumsy scratch constructs in internal paginator template with variables

See #5825
This commit is contained in:
Bjørn Erik Pedersen
2019-04-07 21:59:37 +02:00
parent 3db4a1cf7a
commit 612a06f067
5 changed files with 121 additions and 13 deletions

View File

@@ -81,3 +81,7 @@ func (p *pagePaginator) Paginator(options ...interface{}) (*page.Pager, error) {
return p.current, nil
}
func (p *pagePaginator) rewind() {
p.current = p.current.First()
}