2023-11-01 11:48:19 +01:00
|
|
|
{% extends 'layout.twig' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
|
|
|
|
<div style="float: right; text-align: end;">
|
|
|
|
<a href="/{{ address }}">
|
|
|
|
← Return to inbox</a>
|
|
|
|
<br>
|
2023-11-02 06:25:22 +01:00
|
|
|
<a href="/{{ address }}/delete/{{ uid }}">
|
|
|
|
Delete Email</a>
|
|
|
|
<br>
|
2023-11-01 11:48:19 +01:00
|
|
|
<a href="/login">
|
|
|
|
Logout</a>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div style="text-align: center;">
|
|
|
|
<h1>{{ mail.subject }}</h1>
|
|
|
|
</div>
|
|
|
|
{% if mail.html %}
|
|
|
|
<div>
|
2023-11-02 08:01:17 +01:00
|
|
|
<iframe srcdoc='{{ mail.html|replace({'<html>': '<html style="color: white"'}) }}'></iframe>
|
2023-11-01 11:48:19 +01:00
|
|
|
</div>
|
|
|
|
{% elseif mail.textAsHtml %}
|
|
|
|
<div class="mail_body">
|
|
|
|
{{ mail.textAsHtml|raw }}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="mail_body"></div>
|
|
|
|
{% endif %}
|
|
|
|
<h3 style="text-align: center;display: block;">{{ mail.from.text }} | {{ mail.date| date }}</h3>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|