{# 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 %}

{{ settings.title }}

{% for post in pager.getResults() %} {% if context.getSetting('mode') == 'admin' and admin_pool is defined %} {% if post.ispublic %} {{ 'post_is_public'|trans({}, 'SonataNewsBundle') }} {% else %} {{ 'post_is_not_public'|trans({}, 'SonataNewsBundle') }} {% endif %}  {{ post.title }} - {{ 'archive_author'|trans({'%author%': post.author }, 'SonataNewsBundle') }} - {{ post.publicationDateStart | format_date }} {% else %} {{ post.title }} - {{ 'archive_author'|trans({'%author%': post.author }, 'SonataNewsBundle') }} - {{ post.publicationDateStart | format_date }} {% endif %} {% else %} {{ 'no_post_found'|trans({}, 'SonataNewsBundle') }} {% endfor %}
{% endblock %}