mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 12:06:53 -06:00
Fixes #1168: Total count of obejcts missing from list view paginator
This commit is contained in:
parent
e239045688
commit
008ed34553
@ -7,7 +7,7 @@
|
|||||||
<nav>
|
<nav>
|
||||||
<ul class="pagination pull-right">
|
<ul class="pagination pull-right">
|
||||||
{% if table.page.has_previous %}
|
{% if table.page.has_previous %}
|
||||||
<li><a href="{% querystring table.prefixed_page_field=table.page.previous_page_number %}">«</a></li>
|
<li><a href="{% querystring table.prefixed_page_field=table.page.previous_page_number %}"><i class="fa fa-angle-double-left"></i></a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for p in table.page.smart_pages %}
|
{% for p in table.page.smart_pages %}
|
||||||
{% if p %}
|
{% if p %}
|
||||||
@ -17,18 +17,20 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if table.page.has_next %}
|
{% if table.page.has_next %}
|
||||||
<li><a href="{% querystring table.prefixed_page_field=table.page.next_page_number %}">»</a></li>
|
<li><a href="{% querystring table.prefixed_page_field=table.page.next_page_number %}"><i class="fa fa-angle-double-right"></i></a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
<div class="text-right text-muted">
|
<div class="text-right text-muted">
|
||||||
|
{% with table.page.paginator.count as total %}
|
||||||
Showing {{ table.page.start_index }}-{{ table.page.end_index }} of {{ total }}
|
Showing {{ table.page.start_index }}-{{ table.page.end_index }} of {{ total }}
|
||||||
{% if total == 1 %}
|
{% if total == 1 %}
|
||||||
{{ table.data.verbose_name }}
|
{{ table.data.verbose_name }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ table.data.verbose_name_plural }}
|
{{ table.data.verbose_name_plural }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user