1
0

notif_mail.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <style type="text/css">
  5. {% include 'mail.css' without context %}
  6. {% include "mail-%s.css" % app_name ignore missing without context %}
  7. </style>
  8. </head>
  9. <body>
  10. <table id="page">
  11. <tr>
  12. <td> </td>
  13. <td id="inner">
  14. <table class="header">
  15. <tr>
  16. <td>
  17. <div class="salutation">Hi {{ user_display_name }},</div>
  18. <div class="summarytext">{{ summary_text }}</div>
  19. </td>
  20. <td class="logo">
  21. {% if app_name == "Riot" %}
  22. <img src="http://matrix.org/img/riot-logo-email.png" width="83" height="83" alt="[Riot]"/>
  23. {% elif app_name == "Vector" %}
  24. <img src="http://matrix.org/img/vector-logo-email.png" width="64" height="83" alt="[Vector]"/>
  25. {% else %}
  26. <img src="http://matrix.org/img/matrix-120x51.png" width="120" height="51" alt="[matrix]"/>
  27. {% endif %}
  28. </td>
  29. </tr>
  30. </table>
  31. {% for room in rooms %}
  32. {% include 'room.html' with context %}
  33. {% endfor %}
  34. <div class="footer">
  35. <a href="{{ unsubscribe_link }}">Unsubscribe</a>
  36. <br/>
  37. <br/>
  38. <div class="debug">
  39. Sending email at {{ reason.now|format_ts("%c") }} due to activity in room {{ reason.room_name }} because
  40. an event was received at {{ reason.received_at|format_ts("%c") }}
  41. which is more than {{ "%.1f"|format(reason.delay_before_mail_ms / (60*1000)) }} ({{ reason.delay_before_mail_ms }}) mins ago,
  42. {% if reason.last_sent_ts %}
  43. and the last time we sent a mail for this room was {{ reason.last_sent_ts|format_ts("%c") }},
  44. which is more than {{ "%.1f"|format(reason.throttle_ms / (60*1000)) }} (current throttle_ms) mins ago.
  45. {% else %}
  46. and we don't have a last time we sent a mail for this room.
  47. {% endif %}
  48. </div>
  49. </div>
  50. </td>
  51. <td> </td>
  52. </tr>
  53. </table>
  54. </body>
  55. </html>