{# This file is part of the Sonata package. (c) Thomas Rabaix For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {% extends sonata_block.templates.block_base %} {% block block %}
{% set icon = settings.icon|default('') %} {{ icon|raw }}

{{ admin.label|trans({}, admin.translationdomain) }}

{% if pager and pager.getNbResults() > 0 %} {{ pager.getNbResults() }} {% elseif admin.hasRoute('create') and admin.isGranted('CREATE') %} {% endif %} {% if admin.hasRoute('list') and admin.isGranted('LIST') %} {% endif %}
{% if pager and pager.getResults()|length %}
{% else %}

{{ 'no_results_found'|trans({}, 'SonataAdminBundle') }}

{% endif %}
{% endblock %}