# HG changeset patch # User Mads Kiilerich # Date 2017-10-02 23:44:49 # 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 --git a/kallithea/templates/admin/my_account/my_account_repos.html b/kallithea/templates/admin/my_account/my_account_repos.html --- a/kallithea/templates/admin/my_account/my_account_repos.html +++ b/kallithea/templates/admin/my_account/my_account_repos.html @@ -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 --git a/kallithea/templates/admin/my_account/my_account_watched.html b/kallithea/templates/admin/my_account/my_account_watched.html --- a/kallithea/templates/admin/my_account/my_account_watched.html +++ b/kallithea/templates/admin/my_account/my_account_watched.html @@ -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 --git a/kallithea/templates/admin/repo_groups/repo_groups.html b/kallithea/templates/admin/repo_groups/repo_groups.html --- a/kallithea/templates/admin/repo_groups/repo_groups.html +++ b/kallithea/templates/admin/repo_groups/repo_groups.html @@ -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 --git a/kallithea/templates/admin/repos/repos.html b/kallithea/templates/admin/repos/repos.html --- a/kallithea/templates/admin/repos/repos.html +++ b/kallithea/templates/admin/repos/repos.html @@ -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 --git a/kallithea/templates/admin/user_groups/user_groups.html b/kallithea/templates/admin/user_groups/user_groups.html --- a/kallithea/templates/admin/user_groups/user_groups.html +++ b/kallithea/templates/admin/user_groups/user_groups.html @@ -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 --git a/kallithea/templates/admin/users/users.html b/kallithea/templates/admin/users/users.html --- a/kallithea/templates/admin/users/users.html +++ b/kallithea/templates/admin/users/users.html @@ -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 --git a/kallithea/templates/index_base.html b/kallithea/templates/index_base.html --- a/kallithea/templates/index_base.html +++ b/kallithea/templates/index_base.html @@ -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 });