{% extends 'OroActivityListBundle:ActivityList/js:activityItemTemplate.html.twig' %}
{% import 'OroActivityBundle::macros.html.twig' as AC %}
{% set entityClass = 'Oro\\Bundle\\CallBundle\\Entity\\Call' %}
{% set entityName = oro_entity_config_value(entityClass, 'label')|trans %}
{% block activityDetails %}
{{ entityName }}
<% var template = (verb == 'create')
? {{ 'oro.call.created_by'|trans|json_encode|raw }}
: {{ 'oro.call.changed_by'|trans|json_encode|raw }};
%>
<%= _.template(template, { interpolate: /\{\{(.+?)\}\}/g })({
user: owner_url ? '' + _.escape(owner) + '' : '' + _.escape(owner) + '',
date: '' + createdAt + '',
editor: editor_url ? '' + _.escape(editor) + '' : _.escape(editor),
editor_date: '' + updatedAt + ''
}) %>
{% endblock %}
{% block activityActions %}
{% import 'OroActivityBundle::macros.html.twig' as AC %}
{% set action %}
<% if (editable) { %>
{{ AC.activity_context_link() }}
<% } %>
{% endset %}
{% set actions = [action] %}
{% set action %}
{{ 'oro.call.view_call'|trans({'{{ entity }}': entityName}) }}
{{ 'oro.call.view_call'|trans({'{{ entity }}': entityName}) }}
{% endset %}
{% set actions = actions|merge([action]) %}
{% set action %}
<% if (editable) { %>
{{ 'oro.call.update_call'|trans({'{{ entity }}': entityName}) }}
{{ 'oro.call.update_call'|trans({'{{ entity }}': entityName}) }}
<% } %>
{% endset %}
{% set actions = actions|merge([action]) %}
{% set action %}
<% if (removable) { %>
{{ 'oro.call.delete_call'|trans({'{{ entity }}': entityName}) }}
{{ 'oro.call.delete_call'|trans({'{{ entity }}': entityName}) }}
<% } %>
{% endset %}
{% set actions = actions|merge([action]) %}
{{ parent() }}
{% endblock %}