notif_mail.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 == "Vector" %}
  22. <img src="http://matrix.org/img/vector-logo-email.png" width="64" height="83" alt="[Vector]"/>
  23. {% else %}
  24. <img src="http://matrix.org/img/matrix-120x51.png" width="120" height="51" alt="[matrix]"/>
  25. {% endif %}
  26. </td>
  27. </tr>
  28. </table>
  29. {% for room in rooms %}
  30. {% include 'room.html' with context %}
  31. {% endfor %}
  32. <div class="footer">
  33. <a href="{{ unsubscribe_link }}">Unsubscribe</a>
  34. <br/>
  35. <br/>
  36. <div class="debug">
  37. Sending email at {{ reason.now|format_ts("%c") }} due to activity in room {{ reason.room_name }} because
  38. an event was received at {{ reason.received_at|format_ts("%c") }}
  39. which is more than {{ "%.1f"|format(reason.delay_before_mail_ms / (60*1000)) }} ({{ reason.delay_before_mail_ms }}) mins ago,
  40. {% if reason.last_sent_ts %}
  41. and the last time we sent a mail for this room was {{ reason.last_sent_ts|format_ts("%c") }},
  42. which is more than {{ "%.1f"|format(reason.throttle_ms / (60*1000)) }} (current throttle_ms) mins ago.
  43. {% else %}
  44. and we don't have a last time we sent a mail for this room.
  45. {% endif %}
  46. </div>
  47. </div>
  48. </td>
  49. <td> </td>
  50. </tr>
  51. </table>
  52. </body>
  53. </html>