From 119d6f39b23cc01c73767f8fc10ecf1394aa7a8a Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Tue, 8 Jun 2021 16:41:58 +1200 Subject: [PATCH] fix: update pagination to to use new `param_name` for administrate https://github.com/thoughtbot/administrate/pull/1725 https://github.com/thoughtbot/administrate/issues/1957 --- app/views/admin/approved_user_applications/index.html.erb | 3 ++- app/views/admin/comment_reports/index.html.erb | 3 ++- app/views/admin/signs/index.html.erb | 3 ++- app/views/admin/topics/index.html.erb | 2 +- app/views/admin/users/index.html.erb | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/views/admin/approved_user_applications/index.html.erb b/app/views/admin/approved_user_applications/index.html.erb index 33391cc4d..34a8e167a 100644 --- a/app/views/admin/approved_user_applications/index.html.erb +++ b/app/views/admin/approved_user_applications/index.html.erb @@ -93,7 +93,8 @@ It renders the `_table` partial to display details about the resources. resources: resources, table_title: "page-title" ) %> - <%= paginate resources %> + + <%= paginate resources, param_name: '_page' %> diff --git a/app/views/admin/comment_reports/index.html.erb b/app/views/admin/comment_reports/index.html.erb index a89806ea6..154c7668e 100644 --- a/app/views/admin/comment_reports/index.html.erb +++ b/app/views/admin/comment_reports/index.html.erb @@ -54,6 +54,7 @@ It renders the `_table` partial to display details about the resources. resources: resources, table_title: "page-title" ) %> - <%= paginate resources %> + + <%= paginate resources, param_name: '_page' %> diff --git a/app/views/admin/signs/index.html.erb b/app/views/admin/signs/index.html.erb index bf7b772b9..6f0462a6b 100644 --- a/app/views/admin/signs/index.html.erb +++ b/app/views/admin/signs/index.html.erb @@ -68,6 +68,7 @@ It renders the `_table` partial to display details about the resources. resources: resources, table_title: "page-title" ) %> - <%= paginate resources %> + + <%= paginate resources, param_name: '_page' %> diff --git a/app/views/admin/topics/index.html.erb b/app/views/admin/topics/index.html.erb index 81524366a..846955e9f 100644 --- a/app/views/admin/topics/index.html.erb +++ b/app/views/admin/topics/index.html.erb @@ -59,6 +59,6 @@ It renders the `_table` partial to display details about the resources. table_title: "page-title" ) %> - <%= paginate resources %> + <%= paginate resources, param_name: '_page' %> diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb index 691ff24f5..0e5261b97 100644 --- a/app/views/admin/users/index.html.erb +++ b/app/views/admin/users/index.html.erb @@ -68,6 +68,6 @@ It renders the `_table` partial to display details about the resources. table_title: "page-title" ) %> - <%= paginate resources %> + <%= paginate resources, param_name: '_page' %>