{% macro renderPager(search, pager) %} {% if search == '' %} {{ pagerfanta( pager, 'twitter_bootstrap_translated', {} ) }} {% else %} {{ pagerfanta( pager, 'twitter_bootstrap_translated', {} ) }} {% endif %} {% endmacro %} {% from _self import renderPager %} {% if search is not empty %}
* {{ 'results_for_search_on'|trans({}, 'platform') }} "{{ search }}"
{% endif %} {% if groups is empty %} {{ 'no_group'|trans({}, 'platform') }} {% else %} {% set nbPages = groups.getNbPages() %}
{% if nbPages > 1 %} {{ renderPager(search, groups) }} {% endif %}
{% for group in groups %} {% endfor %}
{{ 'name'|trans({}, 'platform') }}
{{ group.getName() }}
{% if nbPages > 1 %} {{ renderPager(search, groups) }} {% endif %}
{% endif %}