Skip to content

Commit dda0b0b

Browse files
authored
16252 only show results count if paginator (#16269)
* 16252 only show results count if paginator * 16252 hack in table page count * 16252 review changes
1 parent 3542057 commit dda0b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/templates/generic/object_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<li class="nav-item" role="presentation">
4949
<a class="nav-link active" id="object-list-tab" data-bs-toggle="tab" data-bs-target="#object-list" type="button" role="tab" aria-controls="edit-form" aria-selected="true">
5050
{% trans "Results" %}
51-
<span class="badge text-bg-secondary total-object-count">{{ table.page.paginator.count }}</span>
51+
<span class="badge text-bg-secondary total-object-count">{% if table.page.paginator.count %}{{ table.page.paginator.count }}{% else %}{{ total_count }}{% endif %}</span>
5252
</a>
5353
</li>
5454
{% if filter_form %}

0 commit comments

Comments
 (0)