From 9f0213865de5242cfe72d1f2db62e89935229899 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 28 Aug 2023 14:35:44 -0500 Subject: [PATCH] Move chat template out of compress --- templates/chat/chat.html | 5 +++++ templates/chat/chat_js.html | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/chat/chat.html b/templates/chat/chat.html index 857aaf9..bf65e17 100644 --- a/templates/chat/chat.html +++ b/templates/chat/chat.html @@ -42,6 +42,11 @@ return receiver; } + let message_template = ` +{% with message=message_template %} + {% include "chat/message.html" %} +{% endwith %} + `; $(function() { load_dynamic_update({{last_msg}}); }); diff --git a/templates/chat/chat_js.html b/templates/chat/chat_js.html index 116d949..95ca7df 100644 --- a/templates/chat/chat_js.html +++ b/templates/chat/chat_js.html @@ -1,9 +1,4 @@