{% extends 'emails/base.html.twig' %} {% block subject %} {%- autoescape false -%} {{ sender }} mentioned you in the {{ type|readable_enum('NotificationType')|lower }} {{ object }} {%- endautoescape -%} {% endblock %} {% block body_text %} {% autoescape false %} {% if params.commentId|default(false) %} {% set comment = object.commentById(params.commentId) %} {% endif %} {{ comment|default(params.commentBody|default('--'))|html2text }} {{ objectUrl }} Thanks, Your friends at Ledger {% endautoescape %} {% endblock %} {% block body_html_content %} {% import 'emails/macros.html.twig' as EUI %} {{ EUI.displayAvatarText(sender, sender ~ ' mentioned you in the ' ~ type|readable_enum('NotificationType')|lower ~ ' "' ~ object ~ '"') }} {% if params.commentId|default(false) %} {% set comment = object.commentById(params.commentId) %} {% endif %} {% if comment %} {{ EUI.displayCommentBody(comment) }} {% elseif params.commentBody|default(false) %}
{{ params.commentBody|render_html|raw }}
{% endif %} {% if comment and comment.files|length %} {{ EUI.displayFiles(comment.files) }} {% endif %} {% endblock %}