% if (attendees && attendees.length && connection && connection.userId === {{ app.user.id }} && obj.use_hangout) { %> {% import 'OroUIBundle::macros.html.twig' as UI %} <% var hangoutCallOptions = { calendarEvent: obj, ownerUserId: {{ app.user.id|json_encode|raw }}, declinedStatus: {{ constant('Oro\\Bundle\\CalendarBundle\\Entity\\Attendee::STATUS_DECLINED')|json_encode|raw }}, hangoutOptions: { widget_size: 70 } }; %> {% set hangoutButton %}
{% endset %} {{ UI.renderControlGroup('oro.hangoutscall.label'|trans, hangoutButton) }} <% } %>