invite_template.eml.j2 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. Date: {{ date|safe }}
  2. From: {{ from|safe }}
  3. To: {{ to|safe }}
  4. Message-ID: {{ messageid|safe }}
  5. Subject: {{ subject_header_value|safe }}
  6. MIME-Version: 1.0
  7. Content-Type: multipart/alternative;
  8. boundary="{{ multipart_boundary|safe }}"
  9. --{{ multipart_boundary|safe }}
  10. Content-Type: text/plain; charset=UTF-8
  11. Content-Disposition: inline
  12. Hi,
  13. {{ sender_display_name|safe }} {{ bracketed_verified_sender|safe }}has invited you into a {% if room_type == "m.space" %}space{% else %}room{% endif %}
  14. {{ bracketed_room_name|safe }}on Matrix. To join the conversation, either pick a
  15. Matrix client from https://matrix.org/docs/projects/try-matrix-now.html or use
  16. the single-click link below to join via Element (requires Chrome, Firefox,
  17. Safari, iOS or Android)
  18. {{ web_client_location }}/#/room/{{ room_id|urlencode }}?email={{ to|urlencode }}&signurl=https%3A%2F%2Fmatrix.org%2F_matrix%2Fidentity%2Fapi%2Fv1%2Fsign-ed25519%3Ftoken%3D{{ token|urlencode }}%26private_key%3D{{ ephemeral_private_key|urlencode }}&room_name={{ room_name|urlencode }}&room_avatar_url={{ room_avatar_url|urlencode }}&inviter_name={{ sender_display_name|urlencode }}&guest_access_token={{ guest_access_token|urlencode }}&guest_user_id={{ guest_user_id|urlencode }}&room_type={{ room_type|urlencode }}
  19. About Matrix:
  20. Matrix.org is an open standard for interoperable, decentralised, real-time communication
  21. over IP, supporting group chat, file transfer, voice and video calling, integrations to
  22. other apps, bridges to other communication systems and much more. It can be used to power
  23. Instant Messaging, VoIP/WebRTC signalling, Internet of Things communication - or anywhere
  24. you need a standard HTTP API for publishing and subscribing to data whilst tracking the
  25. conversation history.
  26. Matrix defines the standard, and provides open source reference implementations of
  27. Matrix-compatible Servers, Clients, Client SDKs and Application Services to help you
  28. create new communication solutions or extend the capabilities and reach of existing ones.
  29. Thanks,
  30. Matrix
  31. --{{ multipart_boundary|safe }}
  32. Content-Type: text/html; charset=UTF-8
  33. Content-Disposition: inline
  34. <!doctype html>
  35. <html lang="en">
  36. <head>
  37. <style type="text/css">
  38. body {
  39. margin: 0px;
  40. }
  41. pre, code {
  42. word-break: break-word;
  43. white-space: pre-wrap;
  44. }
  45. #page {
  46. font-family: 'Open Sans', Helvetica, Arial, Sans-Serif;
  47. font-color: #454545;
  48. font-size: 12pt;
  49. width: 100%%;
  50. padding: 20px;
  51. }
  52. .low-contrast {
  53. color: #666666
  54. }
  55. #inner {
  56. width: 640px;
  57. }
  58. .header {
  59. width: 100%%;
  60. height: 87px;
  61. color: #454545;
  62. border-bottom: 4px solid #e5e5e5;
  63. }
  64. .logo {
  65. text-align: right;
  66. margin-left: 20px;
  67. }
  68. </style>
  69. </head>
  70. <body>
  71. <table id="page">
  72. <tr>
  73. <td> </td>
  74. <td id="inner">
  75. <table class="header">
  76. <tr>
  77. <td>
  78. </td>
  79. <td class="logo">
  80. <img src="http://matrix.org/img/matrix-120x51.png" width="120" height="51" alt="[matrix]"/>
  81. </td>
  82. </tr>
  83. </table>
  84. <p>Hi,</p>
  85. <p>{{ sender_display_name }} <span class="low-contrast">{{ bracketed_verified_sender }}</span> has invited you into a {% if room_type == "m.space" %}space{% else %}room{% endif %} {{ bracketed_room_name }} on
  86. Matrix. To join the conversation, either <a href="https://matrix.org/docs/projects/try-matrix-now.html">pick a Matrix client</a> or use the single-click
  87. link below to join via Element (requires
  88. <a href="https://www.google.com/chrome">Chrome</a>,
  89. <a href="https://www.getfirefox.com">Firefox</a> or
  90. <a href="https://www.apple.com/safari">Safari</a> on the web,
  91. or iOS or Android on mobile.)</p>
  92. </p>
  93. <p>
  94. <a
  95. href="{{ web_client_location }}/#/room/{{ room_id|urlencode }}?email={{ to|urlencode }}&signurl=https%3A%2F%2Fmatrix.org%2F_matrix%2Fidentity%2Fapi%2Fv1%2Fsign-ed25519%3Ftoken%3D{{ token|urlencode }}%26private_key%3D{{ ephemeral_private_key|urlencode }}&room_name={{ room_name|urlencode }}&room_avatar_url={{ room_avatar_url|urlencode }}&inviter_name={{ sender_display_name|urlencode }}&guest_access_token={{ guest_access_token|urlencode }}&guest_user_id={{ guest_user_id|urlencode }}&room_type={{ room_type|urlencode }}">Join the conversation.</a>
  96. </p>
  97. <br>
  98. <p>About Matrix:</p>
  99. <p>Matrix.org is an open standard for interoperable, decentralised, real-time communication
  100. over IP, supporting group chat, file transfer, voice and video calling, integrations to
  101. other apps, bridges to other communication systems and much more. It can be used to power
  102. Instant Messaging, VoIP/WebRTC signalling, Internet of Things communication - or anywhere
  103. you need a standard HTTP API for publishing and subscribing to data whilst tracking the
  104. conversation history.</p>
  105. <p>Matrix defines the standard, and provides open source reference implementations of
  106. Matrix-compatible Servers, Clients, Client SDKs and Application Services to help you
  107. create new communication solutions or extend the capabilities and reach of existing ones.</p>
  108. <p>Thanks,</p>
  109. <p>Matrix</p>
  110. </td>
  111. <td> </td>
  112. </tr>
  113. </table>
  114. </body>
  115. </html>
  116. --{{ multipart_boundary|safe }}--