{% macro renderOrganizer(user) %} {% import 'OroUIBundle::macros.html.twig' as UI %}
{% if(user.organizerUser is not null and user.organizerDisplayName is not null) %} {{ 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 %}