{% extends 'IcapBlogBundle::layout.html.twig' %} {% trans_default_domain "icap_blog" %} {% block blog_content %} {% if tag is not null %}
× {{ "post_filtered_by_tag"|trans({'%tagName%': tag.name}, 'icap_blog')|raw }}.
{% endif %} {% if author is not null %}
× {{ "post_filtered_by_author"|trans({'%authorName%': author.firstname ~ ' ' ~ author.lastname}, 'icap_blog')|raw }}.
{% endif %} {% if date is not null %}
× {{ "post_filtered_by_date"|trans({'%date%': date}, 'icap_blog')|raw }}.
{% endif %} {% for post in pager %} {% set isPublished = post.isPublished %} {% include 'IcapBlogBundle:Post:postHeader.html.twig' with {'mode': 'blog_view'} %}
{{ post.shortContent(path('icap_blog_post_view', {'blogId': _resource.id, 'postSlug': post.slug}), 'read_more'|trans)|raw }}
{% include 'IcapBlogBundle:Post:postFooter.html.twig' with {'mode': 'blog_view'} %} {% else %} {{ 'no_post'|trans }} {% endfor %} {% if pager.haveToPaginate %}
{{ pagerfanta( pager, 'twitter_bootstrap_translated', { 'proximity' : 1, 'routeName': 'icap_blog_view', 'routeParams': {'blogId': _resource.id} } ) }}
{% endif %} {% endblock %}