forked from extern/django-helpdesk
Don't show kbitems on dashboard if there are no unassigned tickets in them
This commit is contained in:
parent
fe17124092
commit
247fd2e26d
@ -40,6 +40,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% for kbitem in kbitems %}
|
{% for kbitem in kbitems %}
|
||||||
|
{% if kbitem.unassigned_tickets %}
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<i class="fas fa-table"></i>
|
<i class="fas fa-table"></i>
|
||||||
@ -78,4 +79,5 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-footer small text-muted">Listing {{ kbitem.unassigned_tickets|length }} ticket(s).</div>
|
<div class="card-footer small text-muted">Listing {{ kbitem.unassigned_tickets|length }} ticket(s).</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user