<commit_before>{#
    Available variables:
    * entity       - email entity Oro\Bundle\EmailBundle\Entity\EmailUser
    * indexer_item - indexer item Oro\Bundle\SearchBundle\Query\Result\Item
#}
{% extends 'OroSearchBundle:Search:searchResultItem.html.twig' %}

{#{% import 'OroUIBundle::macros.html.twig' as UI %}#}
{% import 'OroEmailBundle::macros.html.twig' as EA %}

{% set iconType = 'envelope' %}

{% set recordUrl = indexer_item.recordUrl %}
{% set title = entity ? entity.subject : indexer_item.recordTitle %}

{% set entityType = 'oro.email.entity_label'|trans %}

{% set entityInfo = [
    {'title': 'oro.email.sent_at.label'|trans, 'value': entity.sentAt|oro_format_datetime},
    {'title': 'oro.email.from_name.label'|trans, 'value': EA.email_address(entity.fromEmailAddress, entity.fromName)},
    {'title': 'oro.email.to.label'|trans, 'value': EA.recipient_email_addresses(entity.recipients('to'))},
    {'title': 'oro.email.emailuser.owner.label'|trans, 'value': EA.entityOwnerLink(entity, false)},
] %}

{#
    {'title': 'oro.email.emailuser.owner.label'|trans, 'value': UI.entityOwnerLink(entity, false)},
#}<commit_msg>CRM-4844: Search api for autocomplete of field Context in form<commit_after>{#
    Available variables:
    * entity       - email entity Oro\Bundle\EmailBundle\Entity\EmailUser
    * indexer_item - indexer item Oro\Bundle\SearchBundle\Query\Result\Item
#}
{% extends 'OroSearchBundle:Search:searchResultItem.html.twig' %}

{% import 'OroEmailBundle::macros.html.twig' as EA %}

{% set iconType = 'envelope' %}

{% set recordUrl = indexer_item.recordUrl %}
{% set title = entity ? entity.subject : indexer_item.recordTitle %}

{% set entityType = 'oro.email.entity_label'|trans %}

{% set entityInfo = [
    {'title': 'oro.email.sent_at.label'|trans, 'value': entity.sentAt|oro_format_datetime},
    {'title': 'oro.email.from_name.label'|trans, 'value': EA.email_address(entity.fromEmailAddress, entity.fromName)},
    {'title': 'oro.email.to.label'|trans, 'value': EA.recipient_email_addresses(entity.recipients('to'))},
    {'title': 'oro.email.emailuser.owner.label'|trans, 'value': EA.entityOwnerLink(entity, false)},
] %}
{'fraction_non_alphanumeric': 0.17136258660508083, 'fraction_numerical': 0.0018475750577367205, 'mean_word_length': 5.188571428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1695683', 'n_tokens_mistral': 768, 'n_tokens_neox': 723, 'n_words': 120}