{% macro renderOrganizer(user) %} {% import '@OroUI/macros.html.twig' as UI %}
{% if(user.organizerUser is not null and user.organizerDisplayName is not null) %} {% include '@OroAttachment/Twig/picture.html.twig' with { sources: oro_filtered_picture_sources(user.organizerUser.avatar, 'avatar_xsmall') ?: asset('bundles/oroui/img/avatar-xsmall.png'), } %} {{ UI.link({ path: path('oro_user_view', { id: user.organizerUser.id}), label: user.organizerDisplayName }) }} {% elseif (user.organizerEmail is not null and user.organizerDisplayName is not null) %} {{ user.organizerDisplayName ~ ' (' ~ user.organizerEmail ~')' }} {% else %} {{ 'oro.calendar.calendarevent.na.label'|trans }} {% endif %}
{% endmacro %} {% macro briefDateCell(theDate) %} {{ theDate|date('D', oro_timezone()) }} {{ theDate|date('j', oro_timezone()) }} {% endmacro %}