From db322731a5115fe29d9976ab490ec39ba8340e59 Mon Sep 17 00:00:00 2001 From: Tom S Date: Wed, 21 Nov 2012 13:39:54 +0000 Subject: [PATCH] refactor test templates --- jqchat/templates/jqchat/base.html | 20 +++++++++++++++++++ jqchat/templates/jqchat/chat_test.html | 19 ++---------------- .../templates/jqchat/chat_test_with_desc.html | 20 ++----------------- 3 files changed, 24 insertions(+), 35 deletions(-) create mode 100644 jqchat/templates/jqchat/base.html diff --git a/jqchat/templates/jqchat/base.html b/jqchat/templates/jqchat/base.html new file mode 100644 index 0000000..4eba37f --- /dev/null +++ b/jqchat/templates/jqchat/base.html @@ -0,0 +1,20 @@ +{% extends "site_base.html" %} + +{% block head_title %}Chat Client{% endblock %} + +{% block extra_head %} + + + + diff --git a/jqchat/templates/jqchat/chat_test.html b/jqchat/templates/jqchat/chat_test.html index 913623c..3db3b7c 100644 --- a/jqchat/templates/jqchat/chat_test.html +++ b/jqchat/templates/jqchat/chat_test.html @@ -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 %} - - +{{ block.super }} - {% endblock %} {% block body %} diff --git a/jqchat/templates/jqchat/chat_test_with_desc.html b/jqchat/templates/jqchat/chat_test_with_desc.html index b1cab9f..03c5b6c 100644 --- a/jqchat/templates/jqchat/chat_test_with_desc.html +++ b/jqchat/templates/jqchat/chat_test_with_desc.html @@ -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 %} - - +{{ block.super }} - - {% endblock %} {% block body %} -- 2.39.5