# HG changeset patch # User Mads Kiilerich # Date 1506980689 -7200 # Node ID ff5c4b26461a1d89bb6f4172f476ac1275ec85bf # Parent 1433199fb0f55edb56ddb3cf5763137ff1367a70 templates: back out the DataTables paging disabling from c5bff92d5084 Lessons learned: * It was not sufficiently tested with gravatars. * It was not sufficiently tested on Chrome - Firefox seems to handle some big pages better. * It is unclear how big amounts of data we want to optimize for, but this regressed too much for some cases. diff -r 1433199fb0f5 -r ff5c4b26461a kallithea/templates/admin/my_account/my_account_repos.html --- a/kallithea/templates/admin/my_account/my_account_repos.html Mon Sep 11 22:19:32 2017 +0200 +++ b/kallithea/templates/admin/my_account/my_account_repos.html Mon Oct 02 23:44:49 2017 +0200 @@ -16,7 +16,7 @@ {data: "action", title: ${h.jshtml(_('Action'))}, sortable: false, searchable: false} ], order: [[2, "asc"]], - dom: '<"dataTables_left"f><"dataTables_right"i>t', - paging: false, + dom: '<"dataTables_left"f><"dataTables_right"ip>t', + pageLength: 100 }); diff -r 1433199fb0f5 -r ff5c4b26461a kallithea/templates/admin/my_account/my_account_watched.html --- a/kallithea/templates/admin/my_account/my_account_watched.html Mon Sep 11 22:19:32 2017 +0200 +++ b/kallithea/templates/admin/my_account/my_account_watched.html Mon Oct 02 23:44:49 2017 +0200 @@ -15,7 +15,7 @@ {data: "last_changeset", "orderData": 3, title: ${h.jshtml(_('Tip'))}, searchable: false}, ], order: [[2, "asc"]], - dom: '<"dataTables_left"f><"dataTables_right"i>t', - paging: false, + dom: '<"dataTables_left"f><"dataTables_right"ip>t', + pageLength: 100 }); diff -r 1433199fb0f5 -r ff5c4b26461a kallithea/templates/admin/repo_groups/repo_groups.html --- a/kallithea/templates/admin/repo_groups/repo_groups.html Mon Sep 11 22:19:32 2017 +0200 +++ b/kallithea/templates/admin/repo_groups/repo_groups.html Mon Oct 02 23:44:49 2017 +0200 @@ -43,8 +43,8 @@ {data: "action", title: ${h.jshtml(_('Action'))}, sortable: false, searchable: false} ], drawCallback: updateRowCountCallback($("#repo_group_count")), - dom: '<"dataTables_left"f><"dataTables_right"i>t', - paging: false, + dom: '<"dataTables_left"f><"dataTables_right"ip>t', + pageLength: 100 }); diff -r 1433199fb0f5 -r ff5c4b26461a kallithea/templates/admin/repos/repos.html --- a/kallithea/templates/admin/repos/repos.html Mon Sep 11 22:19:32 2017 +0200 +++ b/kallithea/templates/admin/repos/repos.html Mon Oct 02 23:44:49 2017 +0200 @@ -44,8 +44,8 @@ {data: "action", title: ${h.jshtml(_('Action'))}, sortable: false, searchable: false} ], drawCallback: updateRowCountCallback($("#repo_count")), - dom: '<"dataTables_left"f><"dataTables_right"i>t', - paging: false, + dom: '<"dataTables_left"f><"dataTables_right"ip>t', + pageLength: 100 }); diff -r 1433199fb0f5 -r ff5c4b26461a kallithea/templates/admin/user_groups/user_groups.html --- a/kallithea/templates/admin/user_groups/user_groups.html Mon Sep 11 22:19:32 2017 +0200 +++ b/kallithea/templates/admin/user_groups/user_groups.html Mon Oct 02 23:44:49 2017 +0200 @@ -43,8 +43,8 @@ {data: "action", title: ${h.jshtml(_('Action'))}, searchable: false, sortable: false} ], order: [[1, "asc"]], - dom: '<"dataTables_left"f><"dataTables_right"i>t', - paging: false, + dom: '<"dataTables_left"f><"dataTables_right"ip>t', + pageLength: 100 }); diff -r 1433199fb0f5 -r ff5c4b26461a kallithea/templates/admin/users/users.html --- a/kallithea/templates/admin/users/users.html Mon Sep 11 22:19:32 2017 +0200 +++ b/kallithea/templates/admin/users/users.html Mon Oct 02 23:44:49 2017 +0200 @@ -46,8 +46,8 @@ ], order: [[1, "asc"]], drawCallback: updateRowCountCallback($("#user_count")), - dom: '<"dataTables_left"f><"dataTables_right"i>t', - paging: false, + dom: '<"dataTables_left"f><"dataTables_right"ip>t', + pageLength: 100 }); diff -r 1433199fb0f5 -r ff5c4b26461a kallithea/templates/index_base.html --- a/kallithea/templates/index_base.html Mon Sep 11 22:19:32 2017 +0200 +++ b/kallithea/templates/index_base.html Mon Oct 02 23:44:49 2017 +0200 @@ -64,7 +64,7 @@ {data: "atom", defaultContent: '', sortable: false} ], order: [[1, "asc"]], - dom: '<"dataTables_left"f><"dataTables_right"i>t', - paging: false, + dom: '<"dataTables_left"f><"dataTables_right"ip>t', + pageLength: 100 });