Merge pull request #972 from auto-mat/kb-items-dashboard

Don't show kbitems on dashboard if there are no unassigned tickets in…
This commit is contained in:
Garret Wassermann 2021-09-15 17:16:30 -04:00 committed by GitHub
commit fc9002b2ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 %}