<commit_before>{% macro calendar_event_view_template(id) %}

<script type="text/template" id="activity-context-activity-list">
    <div class="context-item" style="border: none" data-cid="<%= entity.cid %>">
        <span data-id="<%= entity.get('targetId') %>">
            <span class="<%= entity.get('icon') %>"></span>

            <% if (entity.get('link')) { %>
                <a href="<%= entity.get('link') %>">
                    <span class="context-label"><%= entity.get('title') %></span>
                </a>
            <% } else { %>
                <span class="context-label"><%= entity.get('title') %></span>
            <% } %>
            <% if (editable) { %>
                <i class="icon-remove"></i>
            <% } %>
        </span>
    </div>
</script>

<script type="text/html" id="{{ id }}">
    {% import 'OroUIBundle::macros.html.twig' as UI %}
    <div class="widget-content">
        <div class="row-fluid form-horizontal">
            <div class="responsive-block">
                <!-- Activity contexts container -->
                <div class="activity-context-activity" data-layout="separate">
                    <div class="activity-context-activity-label">
                        {{ 'oro.activity.contexts.label'|trans }}
                    </div>
                    <div class="activity-context-activity-items">
                    </div>
                </div>

                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.title.label'|trans, '<%= formatter.string(title) %>') }}
                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.description.label'|trans, '<%= formatter.text(description) %>') }}
                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.start.label'|trans, '<%= formatter.dateTime(start) %>') }}
                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.end.label'|trans, '<%= formatter.dateTime(end) %>') }}
                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.all_day.label'|trans, '<%= formatter.bool(allDay) %>') }}
            </div>
            <div class="widget-actions form-actions" style="display: none;">
                <% if (id != null && removable) { %>
                {{
                    UI.deleteButton({
                        'aCss': 'no-hash',
                        'id': 'btn-remove-calendarevent',
                        'dataMessage': 'oro.calendar.delete_event.confirmation'|trans,
                        'title': 'oro.calendar.delete_event.title'|trans,
                        'label': 'Delete'|trans,
                        'data': {'action-name': 'delete'}
                    })
                }}
                <% } %>
                <% if (id == null || (id != null && editable)) { %>
                <button class="btn" type="button" data-action-name="edit">{{ 'oro.ui.edit'|trans }}</button>
                <% } %>
                {% placeholder calendar_event_widget_view_actions_jstemplate %}
            </div>
        </div>
    </div>
</script>
{% endmacro %}
<commit_msg>CRM-4516: Check design of pages and popups which include Hangout call button<commit_after>{% macro calendar_event_view_template(id) %}

<script type="text/template" id="activity-context-activity-list">
    <div class="context-item" style="border: none" data-cid="<%= entity.cid %>">
        <span data-id="<%= entity.get('targetId') %>">
            <span class="<%= entity.get('icon') %>"></span>

            <% if (entity.get('link')) { %>
                <a href="<%= entity.get('link') %>">
                    <span class="context-label"><%= entity.get('title') %></span>
                </a>
            <% } else { %>
                <span class="context-label"><%= entity.get('title') %></span>
            <% } %>
            <% if (editable) { %>
                <i class="icon-remove"></i>
            <% } %>
        </span>
    </div>
</script>

<script type="text/html" id="{{ id }}">
    {% import 'OroUIBundle::macros.html.twig' as UI %}
    <div class="widget-content">
        <div class="row-fluid form-horizontal">
            <div class="responsive-block">
                <!-- Activity contexts container -->
                <div class="activity-context-activity" data-layout="separate">
                    <div class="activity-context-activity-label">
                        {{ 'oro.activity.contexts.label'|trans }}
                    </div>
                    <div class="activity-context-activity-items">
                    </div>
                </div>

                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.title.label'|trans, '<%= formatter.string(title) %>') }}
                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.description.label'|trans, '<%= formatter.text(description) %>') }}
                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.start.label'|trans, '<%= formatter.dateTime(start) %>') }}
                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.end.label'|trans, '<%= formatter.dateTime(end) %>') }}
                {{ UI.renderHtmlProperty('oro.calendar.calendarevent.all_day.label'|trans, '<%= formatter.bool(allDay) %>') }}
                {% placeholder calendar_event_widget_view_additional_properties %}
            </div>
            <div class="widget-actions form-actions" style="display: none;">
                <% if (id != null && removable) { %>
                {{
                    UI.deleteButton({
                        'aCss': 'no-hash',
                        'id': 'btn-remove-calendarevent',
                        'dataMessage': 'oro.calendar.delete_event.confirmation'|trans,
                        'title': 'oro.calendar.delete_event.title'|trans,
                        'label': 'Delete'|trans,
                        'data': {'action-name': 'delete'}
                    })
                }}
                <% } %>
                <% if (id == null || (id != null && editable)) { %>
                <button class="btn" type="button" data-action-name="edit">{{ 'oro.ui.edit'|trans }}</button>
                <% } %>
                {% placeholder calendar_event_widget_view_actions_jstemplate %}
            </div>
        </div>
    </div>
</script>
{% endmacro %}

{'fraction_non_alphanumeric': 0.18115015974440896, 'fraction_numerical': 0.0006389776357827476, 'mean_word_length': 1.7963376507369362, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '937623', 'n_tokens_mistral': 1874, 'n_tokens_neox': 1696, 'n_words': 259}