mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
16252 hack in table page count
This commit is contained in:
parent
741bf11462
commit
4aa430af31
@ -651,6 +651,7 @@ class RackElevationListView(generic.ObjectListView):
|
||||
'rack_face': rack_face,
|
||||
'filter_form': forms.RackElevationFilterForm(request.GET),
|
||||
'model': self.queryset.model,
|
||||
'table': {'page': page}, # hack to show count in Result tab
|
||||
})
|
||||
|
||||
|
||||
|
@ -48,9 +48,7 @@ Context:
|
||||
<li class="nav-item" role="presentation">
|
||||
<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">
|
||||
{% trans "Results" %}
|
||||
{% if table.page.paginator %}
|
||||
<span class="badge text-bg-secondary total-object-count">{{ table.page.paginator.count }}</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% if filter_form %}
|
||||
|
Loading…
Reference in New Issue
Block a user