moderation_note-8.x-1.0-beta3/templates/mail-moderation-note.html.twig
templates/mail-moderation-note.html.twig
{#
/**
* @file
* Default theme implementation for moderation note emails.
*
* Available variables:
* - attributes: HTML attributes for the containing element.
* - text: The plain text of the note.
* - quote: The text that was selected when creating this note.
* - author: The author of the note.
* - previous_note: The plain text of the note this note replied to.
* - previous_note_quote: The replied note's selected text.
* - previous_note_author: The author of the replied note.
*
* @ingroup themeable
*/
#}
<div style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;padding: 10px 20px 10px 20px;">
<p>{{ header }}</p>
{% if previous_note %}
<div style="background: #617c90;color: #d2d2d2;max-width: 300px;padding: 10px;margin: 20px 0 -10px 0;">
{% if previous_note_quote %}
<blockquote style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;padding: 15px;margin: 0 0 10px 0;border: 1px solid #bdbdbd;font-style: italic;">
<span style="color:#bbb;font-size:3em;margin-right:5px;line-height: 0.1em;vertical-align: -0.4em;">“</span>
{{ previous_note_quote }}
<span style="color:#bbb;font-size:3em;margin-left:5px;line-height: 0.1em;vertical-align: -0.4em;">”</span>
</blockquote>
{% endif %}
<p>{{ previous_note | nl2br }}</p>
<p style="text-align:right;font-size:12px;">{{ previous_note_author }}</p>
</div>
{% endif %}
<div style="background: #2A6594;color: white;max-width: 300px;padding: 10px;margin: 20px 0 20px 0;">
{% if quote %}
<blockquote style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;padding: 15px;margin: 0 0 10px 0;border: 1px solid #407BAA;font-style: italic;">
<span style="color:#bbb;font-size:3em;margin-right:5px;line-height: 0.1em;vertical-align: -0.4em;">“</span>
{{ quote }}
<span style="color:#bbb;font-size:3em;margin-left:5px;line-height: 0.1em;vertical-align: -0.4em;">”</span>
</blockquote>
{% endif %}
<p>{{ note | nl2br }}</p>
<p style="text-align:right;font-size:12px;">{{ author }}</p>
</div>
<div>{{ view_link }}</div>
<p style="border-top: 1px solid lightgray;padding-top: 10px;margin: 40px 0 20px 0;font-size: 12px;">
{% trans %}
This email was generated by the Moderation Note module.
{% endtrans %}
</p>
</div>
