{% set post %} {% include '@IcapBlog/log/log_list_item_post.html.twig' %} {% endset %} {% set resource %} {% include '@ClarolineCore/log/view_list_item_resource.html.twig' %} {% endset %} {% if constant('Icap\\BlogBundle\\Event\\Log\\LogPostCreateEvent::ACTION') == log.action %} {{ 'log.blog.create_post'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogPostReadEvent::ACTION') == log.action %} {{ 'log.blog.read_post'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogPostUpdateEvent::ACTION') == log.action %} {{ 'log.blog.update_post'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogPostDeleteEvent::ACTION') == log.action %} {{ 'log.blog.delete_post'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogPostPublishEvent::ACTION') == log.action %} {{ 'log.blog.publish_post'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogCommentCreateEvent::ACTION') == log.action %} {{ 'log.blog.create_comment'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogCommentUpdateEvent::ACTION') == log.action %} {{ 'log.blog.update_comment'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogCommentDeleteEvent::ACTION') == log.action %} {{ 'log.blog.delete_comment'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogCommentPublishEvent::ACTION') == log.action %} {{ 'log.blog.publish_comment'|trans({'%blog%': resource, '%post%': post}, 'log')|raw }} {% else %} no default text {% endif %}