Files
zulip/templates/zerver/email.html
Anders Kaseorg dd3fa4ac52 templates: Mark all void tags as self-closing.
This reverses the policy that was set, but incompletely enforced, by
commit 951514dd7d.  The self-closing tag
syntax is clearer, more consistent, simpler to parse, compatible with
XML, preferred by Prettier, and (most importantly now) required by
FormatJS.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-04-21 09:49:34 -07:00

27 lines
587 B
HTML

{% if from_email != envelope_from %}
<h4>Envelope-From: {{ envelope_from }}</h4>
{% endif %}
<h4>From: {{ from_email }}</h4>
{% if reply_to %}
<h4>Reply To:
{% for email in reply_to %}
{{ email }}&nbsp;
{% endfor %}
</h4>
{% endif %}
<h4>To:
{% for recipient in recipients %}
{{ recipient }}&nbsp;
{% endfor %}
</h4>
<h4>Subject: {{subject}}</h4>
<div class="email-html" style="display: block;">
{% autoescape off %}
{{ html_message }}
{% endautoescape %}
</div>
<div class="email-text" style="display: none;">
<pre>{{ body }}</pre>
</div>
<hr />