Don't show kbitems on dashboard if there are no unassigned tickets in them

This commit is contained in:
Timothy Hobbs 2021-09-14 21:59:25 +02:00
parent fe17124092
commit 247fd2e26d

View File

@ -40,6 +40,7 @@
</div>
{% for kbitem in kbitems %}
{% if kbitem.unassigned_tickets %}
<div class="card mb-3">
<div class="card-header">
<i class="fas fa-table"></i>
@ -78,4 +79,5 @@
</div>
<div class="card-footer small text-muted">Listing {{ kbitem.unassigned_tickets|length }} ticket(s).</div>
</div>
{% endif %}
{% endfor %}