48hr.email/infrastructure/web/views/mail.twig.save

35 lines
737 B
Plaintext

{% extends 'layout.twig' %}
{% block body %}
<script>
enableNewMessageNotifications('{{ address }}', false)
</script>
<a href="/{{ address }}">
← Return to inbox</a>
<div style="float: right">
<a href="/login">
Logout</a>
</div>
<h1>{{ mail.subject }}</h1>
<h3>{{ mail.from.text }}</h3>
<h3>{{ mail.date| date }}</h3>
<hr>
{% if mail.html %}
<iframe>
<div class="mail_body" style="overflow: auto;">
{{ mail.html|raw }}
</div>
</iframe>
{% elseif mail.textAsHtml %}
<div class="mail_body">
{{ mail.textAsHtml|raw }}
</div>
{% else %}
<div class="mail_body"></div>
{% endif %}
{% endblock %}