]> git.parisson.com Git - django-jqchat.git/commitdiff
refactor test templates
authorTom S <scytale@gmail.com>
Wed, 21 Nov 2012 13:39:54 +0000 (13:39 +0000)
committerTom S <scytale@gmail.com>
Wed, 21 Nov 2012 13:39:54 +0000 (13:39 +0000)
jqchat/templates/jqchat/base.html [new file with mode: 0644]
jqchat/templates/jqchat/chat_test.html
jqchat/templates/jqchat/chat_test_with_desc.html

diff --git a/jqchat/templates/jqchat/base.html b/jqchat/templates/jqchat/base.html
new file mode 100644 (file)
index 0000000..4eba37f
--- /dev/null
@@ -0,0 +1,20 @@
+{% extends "site_base.html" %}
+
+{% block head_title %}Chat Client{% endblock %}
+
+{% block extra_head %}
+<!-- Load the JS for the chat window and start retrieving messages. -->
+<script type="text/javascript" src="/static/jqchat/jqchat.js"></script>
+<style type="text/css">
+       /* Example styling for the chat window */
+   #chatwindow {
+     height: 250px;
+     width: 400px;
+     border: 1px solid;
+     padding: 5px;
+     margin: 10px 0;
+     overflow: auto;
+     background-color: white;
+   }
+</style>
+
index 913623cde91b9c2db4b5551241bad80a99fd3598..3db3b7c05ef0633b205e97bf2c02fa9bc95d929b 100644 (file)
@@ -1,29 +1,14 @@
-{% extends "site_base.html" %}
+{% extends "jqchat/base.html" %}
 
 {# An example chat window #}
 
-{% block head_title %}Chat Client{% endblock %}
-
 {% block extra_head %}
-<!-- Load the JS for the chat window and start retrieving messages. -->
-<script type="text/javascript" src="/static/jqchat/jqchat.js"></script>
+{{ block.super }}
 <script type="text/javascript">
        $(document).ready(function(){
                InitChatWindow("{% url jqchat_ajax room.id %}", null);
        });
 </script>
-<style type="text/css">
-       /* Example styling for the chat window */
-   #chatwindow {
-     height: 250px;
-     width: 400px;
-     border: 1px solid;
-     padding: 5px;
-     margin: 10px 0;
-     overflow: auto;
-     background-color: white;
-   }
-</style>
 {% endblock %}
 
 {% block body %}
index b1cab9f1debe92ad924516c6dda144320817d426..03c5b6c4d21880114e722782ea28f38dcb8feb8c 100644 (file)
@@ -1,12 +1,9 @@
-{% extends "site_base.html" %}
+{% extends "jqchat/base.html" %}
 
 {# An example chat window #}
 
-{% block head_title %}Chat Client{% endblock %}
-
 {% block extra_head %}
-<!-- Load the JS for the chat window and start retrieving messages. -->
-<script type="text/javascript" src="/static/jqchat/jqchat.js"></script>
+{{ block.super }}
 <script type="text/javascript">
        $(document).ready(function(){
                InitChatWindow("{% url jqchat_test_window_with_description_ajax room.id %}", HandleRoomDescription);
                InitChatDescription();
        });
 </script>
-<style type="text/css">
-       /* Example styling for the chat window */
-   #chatwindow {
-     height: 250px;
-     width: 400px;
-     border: 1px solid;
-     padding: 5px;
-     margin: 10px 0;
-     overflow: auto;
-     background-color: white;
-   }
-</style>
-
 {% endblock %}
 
 {% block body %}