{# tickets/_card.html — the open tickets a host's, monitor's or container's page lists, loaded into it; nothing but the button when there are none. #} {% set can_edit = session.user_role in ('operator', 'admin') %} {% set query = ({"host": host} if host else {"subject": subject}) %} {% if tickets or can_edit %}

{% if tickets %}Known issues ({{ tickets|length }} open){% else %}Known issues{% endif %}

{% if can_edit %}Open a ticket{% endif %}
{% if tickets %} {% else %}

No open tickets.

{% endif %}
{% endif %}