Skip to content

Commit

Permalink
16252 review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanson committed Jun 20, 2024
1 parent 4aa430a commit 030916e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion netbox/dcim/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,6 @@ def get(self, request):
'rack_face': rack_face,
'filter_form': forms.RackElevationFilterForm(request.GET),
'model': self.queryset.model,
'table': {'page': page}, # hack to show count in Result tab
})


Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/generic/object_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<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" %}
<span class="badge text-bg-secondary total-object-count">{{ table.page.paginator.count }}</span>
<span class="badge text-bg-secondary total-object-count">{% if table.page.paginator.count %}{{ table.page.paginator.count }}{% else %}{{ total_count }}{% endif %}</span>
</a>
</li>
{% if filter_form %}
Expand Down

0 comments on commit 030916e

Please sign in to comment.