diff options
author | Matthew Hodgson <matthew@matrix.org> | 2016-05-10 00:14:48 +0200 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2016-05-10 00:14:48 +0200 |
commit | 55996088876664280e7a9232ca21b1875db6c413 (patch) | |
tree | 325a6a6f581c4da6eea102a375b83ef9b5fa24d2 /res/templates/notif_mail.html | |
parent | Switch from CSS to Table layout for HTML mails so they work in Outlook aka Word (diff) | |
download | synapse-55996088876664280e7a9232ca21b1875db6c413.tar.xz |
Switch from CSS to Table layout for HTML mails so they work in Outlook aka Word
Remove templates-vector and theme templates with variables instead Switch to matrix.to URLs by default for links
Diffstat (limited to 'res/templates/notif_mail.html')
-rw-r--r-- | res/templates/notif_mail.html | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/res/templates/notif_mail.html b/res/templates/notif_mail.html index cc3573e65a..4034f3c601 100644 --- a/res/templates/notif_mail.html +++ b/res/templates/notif_mail.html @@ -3,20 +3,38 @@ <head> <style type="text/css"> {% include 'mail.css' without context %} + {% include "mail-%s.css" % app_name ignore missing without context %} </style> </head> <body> - <div id="page"> - <div className="salutation">Hi {{ user_display_name }},</div> - <div className="summarytext">{{ summary_text }}</div> - <div class="content"> - {% for room in rooms %} - {% include 'room.html' with context %} - {% endfor %} - </div> - <div class="footer"> - <a href="{{ unsubscribe_link }}">Unsubscribe</a> - </div> - </div> + <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 %} + <img src="http://matrix.org/img/matrix-94px-white.png" width="94" height="40" alt="[matrix]"/> + {% endif %} + </td> + </tr> + </table> + {% for room in rooms %} + {% include 'room.html' with context %} + {% endfor %} + <div class="footer"> + <a href="{{ unsubscribe_link }}">Unsubscribe</a> + </div> + </td> + <td> </td> + </tr> + </table> </body> </html> |