mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Show per-page selector only when results are present
This commit is contained in:
parent
fee2ac2ebd
commit
3699f16848
@ -31,6 +31,7 @@
|
||||
</div>
|
||||
<div class="col col-md-6 mb-0 text-end">
|
||||
{# Per-page count selector #}
|
||||
{% if page %}
|
||||
<div class="dropdown dropup">
|
||||
<button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown">
|
||||
Per Page
|
||||
@ -43,7 +44,6 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% if page %}
|
||||
<small class="text-end text-muted">
|
||||
Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }}
|
||||
</small>
|
||||
|
@ -46,6 +46,7 @@
|
||||
</div>
|
||||
<div class="col col-md-6 mb-0 text-end">
|
||||
{# Per-page count selector #}
|
||||
{% if page %}
|
||||
<div class="dropdown dropup">
|
||||
<button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown">
|
||||
Per Page
|
||||
@ -63,7 +64,6 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% if page %}
|
||||
<small class="text-end text-muted">
|
||||
Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }}
|
||||
</small>
|
||||
|
Loading…
Reference in New Issue
Block a user