2016-04-27 16:09:55 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2016-04-28 18:29:39 +02:00
|
|
|
<head>
|
2022-08-11 15:04:20 +02:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2016-04-28 18:29:39 +02:00
|
|
|
<style type="text/css">
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- include 'mail.css' without context %}
|
|
|
|
{%- include "mail-%s.css" % app_name ignore missing without context %}
|
2016-04-28 18:29:39 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
2016-04-27 16:09:55 +02:00
|
|
|
<body>
|
2016-05-10 00:14:48 +02: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">
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- if app_name == "Riot" %}
|
2019-03-01 23:02:02 +01:00
|
|
|
<img src="http://riot.im/img/external/riot-logo-email.png" width="83" height="83" alt="[Riot]"/>
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- elif app_name == "Vector" %}
|
2016-05-10 00:14:48 +02:00
|
|
|
<img src="http://matrix.org/img/vector-logo-email.png" width="64" height="83" alt="[Vector]"/>
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- elif app_name == "Element" %}
|
2020-07-21 12:58:01 +02:00
|
|
|
<img src="https://static.element.io/images/email-logo.png" width="83" height="83" alt="[Element]"/>
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- else %}
|
2016-05-13 19:06:56 +02:00
|
|
|
<img src="http://matrix.org/img/matrix-120x51.png" width="120" height="51" alt="[matrix]"/>
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- endif %}
|
2016-05-10 00:14:48 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- for room in rooms %}
|
|
|
|
{%- include 'room.html' with context %}
|
|
|
|
{%- endfor %}
|
2016-05-10 00:14:48 +02:00
|
|
|
<div class="footer">
|
2016-05-18 02:07:44 +02:00
|
|
|
<a href="{{ unsubscribe_link }}">Unsubscribe</a>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
2016-05-23 23:54:32 +02:00
|
|
|
<div class="debug">
|
2016-05-18 02:07:44 +02: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") }}
|
2016-06-21 12:37:56 +02:00
|
|
|
which is more than {{ "%.1f"|format(reason.delay_before_mail_ms / (60*1000)) }} ({{ reason.delay_before_mail_ms }}) mins ago,
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- if reason.last_sent_ts %}
|
2016-05-18 02:07:44 +02:00
|
|
|
and the last time we sent a mail for this room was {{ reason.last_sent_ts|format_ts("%c") }},
|
2016-05-16 19:58:38 +02:00
|
|
|
which is more than {{ "%.1f"|format(reason.throttle_ms / (60*1000)) }} (current throttle_ms) mins ago.
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- else %}
|
2016-05-18 02:07:44 +02:00
|
|
|
and we don't have a last time we sent a mail for this room.
|
2020-10-19 15:12:39 +02:00
|
|
|
{%- endif %}
|
2016-05-23 23:54:32 +02:00
|
|
|
</div>
|
2016-05-10 00:14:48 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td> </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2016-04-27 16:09:55 +02:00
|
|
|
</body>
|
|
|
|
</html>
|