MatMoore / go-improve

App for sharing and reviewing go games
7 stars 1 forks source link

Add pagination to game lists #7

Open MatMoore opened 8 years ago

MatMoore commented 8 years ago

Continuing from #3.

We should be able to page through games rather than having a long list. I.e. display the first 20 and have next/previous buttons.

One way of doing this would be to create a json endpoint to return the games for a specified page, and use datatables.net to render the frontend, as in this example: https://datatables.net/examples/server_side/

This would let us add sorting and filtering easily later on (e.g. filter by player rank)