{% load crispy_forms_tags i18n %}
{{ diagnostics_filter.diagnostic_state|as_crispy_field }}
{{ diagnostics_filter.diagnostic_severity|as_crispy_field }}
{{ diagnostics_filter.diagnostic_category|as_crispy_field }}
{{ diagnostics_filter.diagnostic_actionable|as_crispy_field }}
{% translate "Clear filters" %}
{% for group in diagnostics %}
{{ group.title }} {{ group.severity_label }} {{ group.category_label }} {% if group.active_count %} {% blocktranslate with count=group.active_count %}Active: {{ count }}{% endblocktranslate %} {% endif %} {% if group.dismissed_count %} {% blocktranslate with count=group.dismissed_count %}Dismissed: {{ count }}{% endblocktranslate %} {% endif %}
{% if group.project_wide %}

{% translate "Affected projects" %}

{% if group.hidden_count %}

{% blocktranslate count count=group.hidden_count %}{{ count }} more affected project.{% plural %}{{ count }} more affected projects.{% endblocktranslate %}

{% endif %} {% else %}

{% translate "Affected components" %}

{% if group.hidden_count %}

{% blocktranslate count count=group.hidden_count %}{{ count }} more affected component.{% plural %}{{ count }} more affected components.{% endblocktranslate %}

{% endif %} {% endif %}
{% empty %}

{% translate "No diagnostics match the selected filters." %}

{% endfor %}