瀏覽代碼

fix room.txt

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 %}