Mercurial > kallithea
changeset 6905:ff5c4b26461a
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.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 02 Oct 2017 23:44:49 +0200 |
parents | 1433199fb0f5 |
children | b343a4599178 |
files | kallithea/templates/admin/my_account/my_account_repos.html kallithea/templates/admin/my_account/my_account_watched.html kallithea/templates/admin/repo_groups/repo_groups.html kallithea/templates/admin/repos/repos.html kallithea/templates/admin/user_groups/user_groups.html kallithea/templates/admin/users/users.html kallithea/templates/index_base.html |
diffstat | 7 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- 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 }); </script>
--- 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 }); </script>
--- 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 }); </script>
--- 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 }); </script>
--- 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 }); </script> </%def>
--- 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 }); </script>
--- 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 }); </script>