mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #4802: Allow changing page size when displaying only a single page of results
This commit is contained in:
@ -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
|
||||||
|
@ -19,21 +19,21 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<form method="get">
|
|
||||||
{% for k, v_list in request.GET.lists %}
|
|
||||||
{% if k != 'per_page' %}
|
|
||||||
{% for v in v_list %}
|
|
||||||
<input type="hidden" name="{{ k }}" value="{{ v }}" />
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
<select name="per_page" id="per_page">
|
|
||||||
{% for n in settings.PER_PAGE_DEFAULTS %}
|
|
||||||
<option value="{{ n }}"{% if page.paginator.per_page == n %} selected="selected"{% endif %}>{{ n }}</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select> per page
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<form method="get">
|
||||||
|
{% for k, v_list in request.GET.lists %}
|
||||||
|
{% if k != 'per_page' %}
|
||||||
|
{% for v in v_list %}
|
||||||
|
<input type="hidden" name="{{ k }}" value="{{ v }}" />
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
<select name="per_page" id="per_page">
|
||||||
|
{% for n in settings.PER_PAGE_DEFAULTS %}
|
||||||
|
<option value="{{ n }}"{% if page.paginator.per_page == n %} selected="selected"{% endif %}>{{ n }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select> per page
|
||||||
|
</form>
|
||||||
{% 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 }}
|
||||||
|
Reference in New Issue
Block a user