{{ post.content|raw }}
{% include 'IcapBlogBundle:Post:postFooter.html.twig' with {'mode': 'post_view'} %}
{% extends 'IcapBlogBundle::layout.html.twig' %}
{% trans_default_domain "icap_blog" %}
{% block title %}{{ _resource.resourceNode.name }}{% endblock %}
{% block blog_content %}
{% set isPublished = post.isPublished %}
{{ post.content|raw }}
{% include 'IcapBlogBundle:Post:postFooter.html.twig' with {'mode': 'post_view'} %}
{{ 'icap_blog_post_comment_need_authentication'|trans({'%connection_url%': path('claro_security_login')}, 'icap_blog')|raw }}
{% else %} {% set countComments = is_granted('EDIT', _resource) ? post.countComments(true) : post.countComments %} {% if countComments > 0 %}{{ 'add_comment'|trans }}{% else %}{{ 'be_the_first_to_comment'|trans }}{% endif %} : {% endif %} {% endif %} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}
{% set authorPicture = (null == comment.author) ? null : comment.author.picture %} {% set author = (null == comment.author) ? 'anonymous'|trans({}, 'platform') : comment.author.firstname ~ ' ' ~ comment.author.lastname %} {% set dateText = (null == comment.updateDate)? comment.publicationDate|date('date_format'|trans({}, 'platform')) : 'modified_at'|trans({},'icap_blog') ~ ' ' ~ comment.updateDate|date('date_format'|trans({}, 'platform')) %}- {% if authorPicture is null %}{% else %}
{% endif %} {% if null == comment.author %}{{ author }}{% else %}{{ author }}{% endif %}
{% if isPublished %}-
{% endif %}