{# 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 '@SonataAdmin/Pager/base_results.html.twig' %} {% block num_results %} {% if admin.datagrid.pager.lastPage != admin.datagrid.pager.page %} {{ 'list_results_count_prefix'|trans({}, 'SonataAdminBundle') }} {% endif %} {# NEXT_MAJOR: remove the attribute check and just use .countResults() #} {% trans with {'%count%': attribute(admin.datagrid.pager, 'countResults') is defined ? admin.datagrid.pager.countResults() : admin.datagrid.pager.getNbResults()} from 'SonataAdminBundle' %}list_results_count{% endtrans %}  -  {% endblock %} {% block num_pages %} {{ admin.datagrid.pager.page }} / {% if admin.datagrid.pager.lastPage != admin.datagrid.pager.page %} ? {% else %} {{ admin.datagrid.pager.lastpage }} {% endif %}  -  {% endblock %}