summary refs log tree commit diff
path: root/res/templates
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-28 11:49:36 +0100
committerDavid Baker <dave@matrix.org>2016-04-28 11:49:36 +0100
commitebbabc4986371c83d1d2659d10b27caad9b47951 (patch)
treeb21c1e6198779608514d660958f469a7bab96715 /res/templates
parentAdd the jinja template for individual notifs (diff)
downloadsynapse-ebbabc4986371c83d1d2659d10b27caad9b47951.tar.xz
Handle room invites in email notifs
Diffstat (limited to 'res/templates')
-rw-r--r--res/templates/room.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/res/templates/room.html b/res/templates/room.html
index f369575b98..6c68ee1fdc 100644
--- a/res/templates/room.html
+++ b/res/templates/room.html
@@ -13,9 +13,13 @@
             {% endif %}
         {% endif %}
     </div>
-    <div>
-        {% for notif in room.notifs %}
-            {% include 'notif.html' with context %}
-        {% endfor %}
-    </div>
+    {% if room.invite %}
+        <a href="{{ room.link }}">Join the conversation.</a>
+    {% else %}
+        <div>
+            {% for notif in room.notifs %}
+                {% include 'notif.html' with context %}
+            {% endfor %}
+        </div>
+    {% endif %}
 </div>