{% extends 'emails/base.html.twig' %} {% block subject %} {%- autoescape false -%} {%- if type == constant('App\\DBAL\\Types\\NotificationType::STREAM') -%} {{ sender }} has added you to the {{ type|readable_enum('NotificationType')|lower }} {{ object }} {%- else -%} {{ sender }} has sent you a {{ type|readable_enum('NotificationType')|lower }} {%- endif -%} {%- endautoescape -%} {% endblock %} {% block body_text %} {% autoescape false %} {% if type == constant('App\\DBAL\\Types\\NotificationType::STREAM') %} Stream name: {{ object }} Collaborators: {% for collaborator in object.activeCollaborators %}{{ collaborator }}{% if not loop.last %}, {% endif %}{% endfor %} {{ sender }} is using this {{ type|readable_enum('NotificationType')|lower }} to collaborate on discussions and tasks, and has added you as a participant. To view, simply click below. {% else %} Collaborators: {% for collaborator in object.activeCollaborators %}{{ collaborator }}{% if not loop.last %}, {% endif %}{% endfor %} {% endif %} {{ objectUrl }} Thanks, Your friends at Ledger {% endautoescape %} {% endblock %} {% block body_html_content %} {% import 'emails/macros.html.twig' as EUI %} {{ EUI.displayAvatarText(sender, sender ~ ' added you to the ' ~ type|readable_enum('NotificationType')|lower ~ ' "' ~ object ~ '"') }} {% if type == constant('App\\DBAL\\Types\\NotificationType::STREAM') %}
{{ sender }} is using this {{ type|readable_enum('NotificationType')|lower }} to collaborate on discussions and tasks, and has added you as a participant. To view, simply click below.
{% else %}