Here is a new patch that take in account the new template system and the integration of datatables plugin. I have deleted all code related to server-side pagination. Tested with 9k rows sent to the page: it's ok.