{# Фильтры списка проектов в контекстном слоте сайдбара (Статус / Тип / поиск). Бизнес-фасет убран — бизнес теперь пункт меню. Контекст: d.facets как fc, request. base path = /projects: динамические *_qs само-чинятся от request.url; статичные — явно. #} {% set fc = d.facets %} {% if fc and (fc.statuses or fc.types or fc.active.q or d.filter_active) %}
Статус {% for st in fc.statuses %} {{ st.label }} {{ st.count }} {% endfor %}
{% if fc.types %}
Тип {% for t in fc.types %} {{ t.key }} {{ t.count }} {% endfor %}
{% endif %} {% if d.filter_active %}
Активно {% for st in fc.active.statuses %}{{ st }} ✕{% endfor %} {% for t in fc.active.types %}{{ t }} ✕{% endfor %} {% if fc.active.q %}«{{ fc.active.q }}» ✕{% endif %} Сбросить всё
{% endif %}
{% endif %}