diff --git a/quest/jinja2/quest/chat.html b/quest/jinja2/quest/chat.html
new file mode 100644
index 0000000..fe505c8
--- /dev/null
+++ b/quest/jinja2/quest/chat.html
@@ -0,0 +1,20 @@
+
+
Chat
+
+ {% autoescape false %}
+ {% for message in chat_messages %}
+
+
+
{{ message.message }}
+
+
+ {% endfor %}
+ {% endautoescape %}
+
+
+
+
diff --git a/quest/jinja2/quest/quest.html b/quest/jinja2/quest/quest.html
index 56ddf8b..4127d1b 100644
--- a/quest/jinja2/quest/quest.html
+++ b/quest/jinja2/quest/quest.html
@@ -175,24 +175,5 @@
{% endif %}
-
-
Chat
-
- {% autoescape false %}
- {% for message in chat_messages %}
-
-
-
{{ message.message }}
-
-
- {% endfor %}
- {% endautoescape %}
-
-
-
-
+ {% include "quest/chat.html" %}
{% endblock %}
diff --git a/quest/jinja2/quest/quest_homepage.html b/quest/jinja2/quest/quest_homepage.html
index 27ccc66..a423ce8 100644
--- a/quest/jinja2/quest/quest_homepage.html
+++ b/quest/jinja2/quest/quest_homepage.html
@@ -2,6 +2,14 @@
{% block title %}{{ quest.title }}{% endblock %}
{% block head %}
+
+
+
{% endblock %}
{% block header %}
{% if request.user == quest.owner %}
@@ -77,24 +85,5 @@
{% endif %}
-
-
Chat
-
- {% autoescape false %}
- {% for message in chat_messages %}
-
-
-
{{ message.message }}
-
-
- {% endfor %}
- {% endautoescape %}
-
-
-
-
+ {% include "quest/chat.html" %}
{% endblock %}