-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show more records, records items per page #306
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #306 +/- ##
==========================================
- Coverage 37.76% 34.40% -3.36%
==========================================
Files 96 66 -30
Lines 3948 3784 -164
==========================================
- Hits 1491 1302 -189
- Misses 2457 2482 +25 ☔ View full report in Codecov by Sentry. |
qgis-app/plugins/views.py
Outdated
@@ -605,6 +605,8 @@ def get_context_data(self, **kwargs): | |||
context.update(self.additional_context) | |||
context["current_sort_query"] = self.get_sortstring() | |||
context["current_querystring"] = self.get_querystring() | |||
context["per_page_list"] = [20, 50, 75, 100] | |||
context["show_more_items_number"] = context["paginator"].per_page + 50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be based on the number from per_page_list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right. I have fixed it.
Please find below a GIF of the show more button and elements per page options: