synapse-old/res/templates/notif_mail.html

56 lines
2.7 KiB
HTML
Raw Permalink Normal View History

<!doctype html>
<html lang="en">
<head>
<style type="text/css">
{% include 'mail.css' without context %}
{% include "mail-%s.css" % app_name ignore missing without context %}
</style>
</head>
<body>
<table id="page">
<tr>
<td> </td>
<td id="inner">
<table class="header">
<tr>
<td>
<div class="salutation">Hi {{ user_display_name }},</div>
<div class="summarytext">{{ summary_text }}</div>
</td>
<td class="logo">
2016-10-04 03:20:21 -06:00
{% if app_name == "Riot" %}
<img src="http://matrix.org/img/riot-logo-email.png" width="83" height="83" alt="[Riot]"/>
{% elif app_name == "Vector" %}
<img src="http://matrix.org/img/vector-logo-email.png" width="64" height="83" alt="[Vector]"/>
{% else %}
2016-05-13 11:06:56 -06:00
<img src="http://matrix.org/img/matrix-120x51.png" width="120" height="51" alt="[matrix]"/>
{% endif %}
</td>
</tr>
</table>
{% for room in rooms %}
{% include 'room.html' with context %}
{% endfor %}
<div class="footer">
2016-05-17 18:07:44 -06:00
<a href="{{ unsubscribe_link }}">Unsubscribe</a>
<br/>
<br/>
2016-05-23 15:54:32 -06:00
<div class="debug">
2016-05-17 18:07:44 -06:00
Sending email at {{ reason.now|format_ts("%c") }} due to activity in room {{ reason.room_name }} because
an event was received at {{ reason.received_at|format_ts("%c") }}
which is more than {{ "%.1f"|format(reason.delay_before_mail_ms / (60*1000)) }} ({{ reason.delay_before_mail_ms }}) mins ago,
{% if reason.last_sent_ts %}
2016-05-17 18:07:44 -06:00
and the last time we sent a mail for this room was {{ reason.last_sent_ts|format_ts("%c") }},
which is more than {{ "%.1f"|format(reason.throttle_ms / (60*1000)) }} (current throttle_ms) mins ago.
{% else %}
2016-05-17 18:07:44 -06:00
and we don't have a last time we sent a mail for this room.
{% endif %}
2016-05-23 15:54:32 -06:00
</div>
</div>
</td>
<td> </td>
</tr>
</table>
</body>
</html>