{# Available variables: * entity - email entity Oro\Bundle\EmailBundle\Entity\EmailUser * indexer_item - indexer item Oro\Bundle\SearchBundle\Query\Result\Item #} {% extends '@OroSearch/Search/searchResultItem.html.twig' %} {% import '@OroUI/macros.html.twig' as UI %} {% import '@OroEmail/macros.html.twig' as EA %} {% set iconType = 'envelope' %} {% set recordUrl = indexer_item.recordUrl %} {% set title = indexer_item.selectedData.name %} {% set entityType = 'oro.email.entity_label'|trans %} {% set entityInfo = [ {'title': 'oro.email.sent_at.label'|trans, 'value': entity.email.sentAt|oro_format_datetime}, {'title': 'oro.email.from_name.label'|trans, 'value': EA.email_address(entity.email.fromEmailAddress, entity.email.fromName)}, {'title': 'oro.email.to.label'|trans, 'value': EA.recipient_email_addresses(entity.email.recipients('to'))}, {'title': 'oro.email.emailuser.owner.label'|trans, 'value': UI.entityOwnerLink(entity, false)}, ] %}