2016-04-27 08:09:55 -06:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2016-04-28 10:29:39 -06:00
|
|
|
<head>
|
|
|
|
<style type="text/css">
|
|
|
|
{% include 'mail.css' without context %}
|
2016-05-09 16:14:48 -06:00
|
|
|
{% include "mail-%s.css" % app_name ignore missing without context %}
|
2016-04-28 10:29:39 -06:00
|
|
|
</style>
|
|
|
|
</head>
|
2016-04-27 08:09:55 -06:00
|
|
|
<body>
|
2016-05-09 16:14:48 -06:00
|
|
|
<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">
|
|
|
|
{% if 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]"/>
|
2016-05-09 16:14:48 -06:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{% for room in rooms %}
|
|
|
|
{% include 'room.html' with context %}
|
|
|
|
{% endfor %}
|
|
|
|
<div class="footer">
|
2016-05-16 11:58:38 -06:00
|
|
|
<small>
|
2016-05-16 12:02:22 -06:00
|
|
|
Sending email at {{ reason.now|format_ts("%c") }} due to activity in room '{{ reason.room_name }}' because:<br/>
|
|
|
|
1. An event was received at {{ reason.received_at|format_ts("%c") }}
|
2016-05-16 11:58:38 -06:00
|
|
|
which is more than {{ "%.1f"|format(reason.delay_before_mail_ms / (60*1000)) }} (delay_before_mail_ms) mins ago.<br/>
|
|
|
|
{% if reason.last_sent_ts %}
|
|
|
|
2. 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 %}
|
|
|
|
2. We can't remember the last time we sent a mail for this room.
|
|
|
|
{% endif %}
|
|
|
|
</small>
|
2016-05-09 16:14:48 -06:00
|
|
|
<a href="{{ unsubscribe_link }}">Unsubscribe</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td> </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2016-04-27 08:09:55 -06:00
|
|
|
</body>
|
|
|
|
</html>
|