{% set post %} {% include 'IcapBlogBundle:Log:log_list_item_post.html.twig' %} {% endset %} {% set resource %} {% include 'ClarolineCoreBundle: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 }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogBlogConfigureEvent::ACTION') == log.action %} {{ 'log.blog.configure'|trans({'%blog%': resource}, 'log')|raw }} {% elseif constant('Icap\\BlogBundle\\Event\\Log\\LogBlogConfigureBannerEvent::ACTION') == log.action %} {{ 'log.blog.configure_banner'|trans({'%blog%': resource}, 'log')|raw }} {% else %} no default text {% endif %}