Kaynağa Gözat

Added default:"0" to total_count in object_list.html

Julio-Oliveira-Encora 1 yıl önce
ebeveyn
işleme
2c64a52d7d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      netbox/templates/generic/object_list.html

+ 1 - 1
netbox/templates/generic/object_list.html

@@ -48,7 +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" %}
-        <span class="badge text-bg-secondary total-object-count">{% if table.page.paginator.count %}{{ table.page.paginator.count }}{% else %}{{ total_count }}{% endif %}</span>
+        <span class="badge text-bg-secondary total-object-count">{% if table.page.paginator.count %}{{ table.page.paginator.count }}{% else %}{{ total_count|default:"0" }}{% endif %}</span>
       </a>
     </li>
     {% if filter_form %}