1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #1870: Add per-page toggle to object lists

This commit is contained in:
Jeremy Stretch
2019-01-04 11:07:55 -05:00
parent 0a820d9c98
commit 848aa0b098
7 changed files with 39 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
{% load helpers %}
<div class="paginator pull-right">
<div class="paginator pull-right text-right">
{% if paginator.num_pages > 1 %}
<nav>
<ul class="pagination pull-right">
@@ -19,6 +19,13 @@
{% endif %}
</ul>
</nav>
<form method="get">
<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 %}
{% if page %}
<div class="text-right text-muted">