summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-21 19:22:53 +0100
committerDavid Baker <dave@matrix.org>2016-04-21 19:22:53 +0100
commit19d6b6cd7aa32f844362f77ca7f0403af37fc396 (patch)
tree56941b448411ec1cdf610180ce6066ab750b7d25
parentFlesh out email templating (diff)
downloadsynapse-19d6b6cd7aa32f844362f77ca7f0403af37fc396.tar.xz
Add WIP email template files
-rw-r--r--res/templates/notif.html14
-rw-r--r--res/templates/room.html6
2 files changed, 20 insertions, 0 deletions
diff --git a/res/templates/notif.html b/res/templates/notif.html
new file mode 100644

index 0000000000..648ff034b3 --- /dev/null +++ b/res/templates/notif.html
@@ -0,0 +1,14 @@ +<!doctype html> +<html lang="en"> + <body> + <h1>{{ summaryText }}</h1> + <div class="content"> + {% for room in rooms %} + {% include 'room.html' with context %} + {% endfor %} + </div> + <div class="footer"> + <a href="{{ unsubscribe_link }}">Unsubscribe</a> + </div> + </body> +</html> diff --git a/res/templates/room.html b/res/templates/room.html new file mode 100644
index 0000000000..ef36b4ee58 --- /dev/null +++ b/res/templates/room.html
@@ -0,0 +1,6 @@ +<div class="room"> + <h2>{{ room.title }}</h2> + <div> + Things have happened in this room + </div> +</div>