Closes #4802: Allow changing page size when displaying only a single page of results

This commit is contained in:
Jeremy Stretch 2020-06-30 09:00:42 -04:00
parent c8461095c9
commit 268b4c854e
2 changed files with 18 additions and 14 deletions

View File

@ -2,6 +2,10 @@
## v2.8.7 (FUTURE) ## v2.8.7 (FUTURE)
### Enhancements
* [#4802](https://github.com/netbox-community/netbox/issues/4802) - Allow changing page size when displaying only a single page of results
### Bug Fixes ### Bug Fixes
* [#4766](https://github.com/netbox-community/netbox/issues/4766) - Fix redirect after login when `next` is not specified * [#4766](https://github.com/netbox-community/netbox/issues/4766) - Fix redirect after login when `next` is not specified

View File

@ -19,6 +19,7 @@
{% endif %} {% endif %}
</ul> </ul>
</nav> </nav>
{% endif %}
<form method="get"> <form method="get">
{% for k, v_list in request.GET.lists %} {% for k, v_list in request.GET.lists %}
{% if k != 'per_page' %} {% if k != 'per_page' %}
@ -33,7 +34,6 @@
{% endfor %} {% endfor %}
</select> per page </select> per page
</form> </form>
{% endif %}
{% if page %} {% if page %}
<div class="text-right text-muted"> <div class="text-right text-muted">
Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }} Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }}