{% if articles is empty and downloads is empty %}

{{ 'app.common.components.search.none_results'|trans }}

{% else %}

{{ 'app.common.components.search.match_results'|trans }} : {{ query }}

{% if articles is not empty %} {% set countArticle = 0 %} {% for article in articles %} {% if is_granted('read', article) %} {% set countArticle = countArticle + 1 %} {% endif %} {% endfor %}

{{ 'app.common.components.news.title'|trans }} ({{ countArticle }})

{% for article in articles %} {% if is_granted('read', article) %} {% endif %} {% endfor %}
{% endif %} {% if downloads is not empty %}
{% set countDownload = 0 %} {% for download in downloads %} {% if is_granted('read', download) %} {% set countDownload = countDownload + 1 %} {% endif %} {% endfor %}

{{ 'app.common.components.download.action'|trans }} ({{ countDownload }})

{% for download in downloads %} {% if is_granted('read', download) %}
{% set file = download.files is not empty ? download.files.first : null %}

{{ download.title|capitalize }}

{{ download.subtitle }}
{% endif %} {% endfor %}
{% endif %} {% endif %}