Skip to content

Commit

Permalink
fix: update pagination to to use new param_name for administrate
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jun 8, 2021
1 parent c340389 commit 2aaa5e3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/views/admin/approved_user_applications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>
</section>
</div>

Expand Down
3 changes: 2 additions & 1 deletion app/views/admin/comment_reports/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>
</section>
</div>
3 changes: 2 additions & 1 deletion app/views/admin/signs/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>
</section>
</div>
2 changes: 1 addition & 1 deletion app/views/admin/topics/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>
</section>
</div>
2 changes: 1 addition & 1 deletion app/views/admin/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>
</section>
</div>

0 comments on commit 2aaa5e3

Please sign in to comment.