Matthew Hodgson преди 8 години
родител
ревизия
c64d5fc66c
променени са 1 файла, в които са добавени 7 реда и са изтрити 4 реда
  1. 7 4
      res/templates/room.txt

+ 7 - 4
res/templates/room.txt

@@ -1,6 +1,9 @@
 {{ room.title }}
-You've been invited, join at {{ room.link }}
 
-{% for notif in room.notifs %}
-{% include 'notif.txt' with context %}
-{% endfor %}
+{% if room.invite %}
+    You've been invited, join at {{ room.link }}
+{% else %}
+    {% for notif in room.notifs %}
+        {% include 'notif.txt' with context %}
+    {% endfor %}
+{% endif %}