Skip to content

Commit

Permalink
Merge pull request #972 from auto-mat/kb-items-dashboard
Browse files Browse the repository at this point in the history
Don't show kbitems on dashboard if there are no unassigned tickets in…
  • Loading branch information
gwasser committed Sep 15, 2021
2 parents fe17124 + 247fd2e commit fc9002b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpdesk/templates/helpdesk/include/unassigned.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -78,4 +79,5 @@
</div>
<div class="card-footer small text-muted">Listing {{ kbitem.unassigned_tickets|length }} ticket(s).</div>
</div>
{% endif %}
{% endfor %}

0 comments on commit fc9002b

Please sign in to comment.