{% 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 %} {% endif %}
{% if message is not empty %} {{ EUI.displayCard( null, sender, sender|default({name: 'Unknown User'}).name ~ ' added a comment', EUI.displayCommentBody({ body: message|trim }) ) }} {% endif %} {% for comment in object.initializedComments|default([]) %} {{ EUI.displayComment(comment) }} {% endfor %} {% if object.initializedFiles|default([]) is not empty %} {{ EUI.displayCard( null, object.creator, object.creator|default({name: 'Unknown User'}).name ~ ' added files', EUI.displayFiles(object.initializedFiles), object.createdAt|date(receiver.timeFormat|default('h:i A')) ) }} {% endif %}

View {{ type|readable_enum('NotificationType') }}

{% endblock %}