Files
notifications-admin/app/templates/components/email-message.html
T

61 lines
1.6 KiB
HTML
Raw Normal View History

2016-05-05 08:38:55 +01:00
{% macro email_message(
subject,
body,
from_name=None,
from_address=None,
recipient=None,
id=None,
show_placeholder_for_recipient=False,
show_id=False,
expanded=False
2016-05-05 08:38:55 +01:00
) %}
2016-01-13 16:27:54 +00:00
<div class="email-message">
2016-02-23 14:58:49 +00:00
{% if from_name or subject %}
<table class="email-message-meta">
<tbody>
{% if from_name and from_address %}
<tr>
<th>From</th>
<td>
{{ from_name }} &lt;{{ from_address }}&gt;
</td>
</tr>
{% endif %}
2016-05-05 08:38:55 +01:00
{% if recipient is not none %}
<tr>
<th>To</th>
<td>
{% if show_placeholder_for_recipient %}
2016-06-02 10:40:17 +01:00
<span class="placeholder-no-brackets">
2016-05-05 08:38:55 +01:00
email address
</span>
{% else %}
{{ recipient }}
{% endif %}
</td>
</tr>
{% endif %}
2016-02-23 14:58:49 +00:00
{% if subject %}
<tr class="email-message-meta">
<th>Subject</th>
<td>
{{ subject }}
</td>
</div>
{% endif %}
</tbody>
</table>
{% endif %}
<div class="email-message-body" {% if not expanded %}data-module="expand-collapse" data-max-height="200"{% endif %}>
{% if not expanded %}
2016-04-12 16:21:41 +01:00
<div class="email-message-body-wrapper">
{% endif %}
2016-08-01 14:25:28 +01:00
{{ body }}
{% if not expanded %}
</div>
<div class='toggle' tabindex='0'>...<span class='visually-hidden'>show full email</span></div>
{% endif %}
2016-01-13 16:27:54 +00:00
</div>
</div>
{% endmacro %}