# HG changeset patch # User Mads Kiilerich # Date 2016-05-23 18:02:33 # Node ID ff33bb5cf1e9fb75e9664ac279d1ad564781a555 # Parent 69418cbd828581cbd2814da080e1cbc0e82379df datatables: show 100 entries by default The jQuery DataTables default of 10 is too few ... and 100 is better than the old YUI default of 25. 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,6 +16,7 @@ {data: "last_changeset", "orderData": 3, title: "${_('Tip')}", searchable: false}, {data: "action", title: "${_('Action')}", sortable: false, searchable: false} ], - order: [[2, "asc"]] + order: [[2, "asc"]], + 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,6 +15,7 @@ {data: "last_rev_raw", "visible": false, searchable: false}, {data: "last_changeset", "orderData": 3, title: "${_('Tip')}", searchable: false}, ], - order: [[2, "asc"]] + order: [[2, "asc"]], + 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 @@ -45,7 +45,8 @@ {data: "owner", title: "${_('Owner')}", searchable: false}, {data: "action", title: "${_('Action')}", sortable: false, searchable: false} ], - drawCallback: updateRowCountCallback($("#repo_group_count")) + drawCallback: updateRowCountCallback($("#repo_group_count")), + 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 @@ -46,7 +46,8 @@ {data: "state", title: "${_('State')}", searchable: false}, {data: "action", title: "${_('Action')}", sortable: false, searchable: false} ], - drawCallback: updateRowCountCallback($("#repo_count")) + drawCallback: updateRowCountCallback($("#repo_count")), + 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 @@ -46,7 +46,8 @@ {data: "owner", title: "${_('Owner')}", searchable: false}, {data: "action", title: "${_('Action')}", searchable: false, sortable: false} ], - order: [[1, "asc"]] + order: [[1, "asc"]], + 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 @@ -47,7 +47,8 @@ {data: "action", title: "${_('Action')}", searchable: false, sortable: false} ], order: [[1, "asc"]], - drawCallback: updateRowCountCallback($("#user_count")) + drawCallback: updateRowCountCallback($("#user_count")), + 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 @@ -97,6 +97,7 @@ {data: "owner", title: "${_('Owner')}", searchable: false}, {data: "atom", sortable: false} ], - order: [[1, "asc"]] + order: [[1, "asc"]], + pageLength: 100 });