From f27ae7d0cc1bac644921855f37b2ef05990104ca Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Mon, 17 Jan 2011 02:51:55 +0530 Subject: Restructure the entire base template and move the left sidebar to another subtemplate. --- pytask/templates/_left_sidebar.html | 39 ++++++++++++++ pytask/templates/base.html | 101 ++++++++++++++++++------------------ 2 files changed, 90 insertions(+), 50 deletions(-) create mode 100644 pytask/templates/_left_sidebar.html diff --git a/pytask/templates/_left_sidebar.html b/pytask/templates/_left_sidebar.html new file mode 100644 index 0000000..0ee0fea --- /dev/null +++ b/pytask/templates/_left_sidebar.html @@ -0,0 +1,39 @@ +{% load user_tags %} + + + \ No newline at end of file diff --git a/pytask/templates/base.html b/pytask/templates/base.html index d2977df..ba6fd9e 100644 --- a/pytask/templates/base.html +++ b/pytask/templates/base.html @@ -1,63 +1,64 @@ - {% block title %}PyTasks{% endblock %} - {% comment %}Load site wide CSS here. Additional styling must be - loaded in the block that follows{% endcomment %} - - - {% block css %} - {% endblock %} + + {% block title %}PyTasks{% endblock %} + - {% comment %}Load site wide javascript here. Additional scripts must - be loaded in the block that follows{% endcomment %} - - - {% block js %} - {% endblock %} + {% comment %}Load site wide CSS here. Additional styling must be + loaded in the block that follows{% endcomment %} + + + + {% block css %} + {% endblock %} + + + {% comment %}Load site wide javascript here. Additional scripts must + be loaded in the block that follows{% endcomment %} + + + + {% block js %} + {% endblock %} -{% load user_tags %} + + -
+
+
-
- -
-
- {% block content %}This is the default content{% endblock %} -
- -
-
+
+ {% include '_left_sidebar.html' %} + + {% block leftsidebar %} + {% comment %}Additional Left Sidebar elements go here{% endcomment %} + {% endblock leftsidebar %} +
+ +
+ {% block content %}This is the default content{% endblock content %} +
+ + + +
+
-- cgit