changeset 5941:ff33bb5cf1e9

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.
author Mads Kiilerich <madski@unity3d.com>
date Mon, 23 May 2016 18:02:33 +0200
parents 69418cbd8285
children 278ae0578a76
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(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/admin/my_account/my_account_repos.html	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/templates/admin/my_account/my_account_repos.html	Mon May 23 18:02:33 2016 +0200
@@ -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
     });
 </script>
--- a/kallithea/templates/admin/my_account/my_account_watched.html	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/templates/admin/my_account/my_account_watched.html	Mon May 23 18:02:33 2016 +0200
@@ -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
     });
 </script>
--- a/kallithea/templates/admin/repo_groups/repo_groups.html	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/templates/admin/repo_groups/repo_groups.html	Mon May 23 18:02:33 2016 +0200
@@ -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
     });
 
 </script>
--- a/kallithea/templates/admin/repos/repos.html	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/templates/admin/repos/repos.html	Mon May 23 18:02:33 2016 +0200
@@ -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
     });
 </script>
 
--- a/kallithea/templates/admin/user_groups/user_groups.html	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/templates/admin/user_groups/user_groups.html	Mon May 23 18:02:33 2016 +0200
@@ -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
     });
 </script>
 </%def>
--- a/kallithea/templates/admin/users/users.html	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/templates/admin/users/users.html	Mon May 23 18:02:33 2016 +0200
@@ -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
     });
 </script>
 
--- a/kallithea/templates/index_base.html	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/templates/index_base.html	Mon May 23 18:02:33 2016 +0200
@@ -97,6 +97,7 @@
                     {data: "owner", title: "${_('Owner')}", searchable: false},
                     {data: "atom", sortable: false}
                 ],
-                order: [[1, "asc"]]
+                order: [[1, "asc"]],
+                pageLength: 100
             });
       </script>