reasonable tournament pagination
This commit is contained in:
parent
4d1bae1bb4
commit
5f40dab67d
|
@ -21,7 +21,7 @@ object Tournament extends LilaController {
|
|||
|
||||
def home(page: Int) = Open { implicit ctx =>
|
||||
negotiate(
|
||||
html = {
|
||||
html = Reasonable(page, 20) {
|
||||
val finishedPaginator = repo.finishedPaginator(maxPerPage = 30, page = page)
|
||||
if (HTTPRequest isXhr ctx.req) finishedPaginator map { pag =>
|
||||
Ok(html.tournament.finishedPaginator(pag))
|
||||
|
|
Loading…
Reference in a new issue