From 40941dd0785881fa3da5360cf99762c2d6541437 Mon Sep 17 00:00:00 2001 From: sanj Date: Thu, 30 Dec 2010 21:47:36 +0530 Subject: [PATCH] add leftBar --- padmaTexts/static/css/text.css | 10 ++++++++++ padmaTexts/static/js/views/sidebar.js | 4 ++-- padmaTexts/templates/text_embed.html | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/padmaTexts/static/css/text.css b/padmaTexts/static/css/text.css index 69b456d..05668fe 100644 --- a/padmaTexts/static/css/text.css +++ b/padmaTexts/static/css/text.css @@ -15,6 +15,16 @@ body { padding: 4px; } +#leftBar { + width: 250px; + height: 100%; + background: #000; + float: left; +} + +#essayWrapper { + float: left; +} #essayAbstract { font-style: italic; diff --git a/padmaTexts/static/js/views/sidebar.js b/padmaTexts/static/js/views/sidebar.js index 6676e59..ffd8ea5 100644 --- a/padmaTexts/static/js/views/sidebar.js +++ b/padmaTexts/static/js/views/sidebar.js @@ -5,8 +5,8 @@ $(function() { padmaContainer.data("currentVideo", false); function resize() { var docWidth = $(document).width(); - var essayWidth = docWidth - 400; - $('#leftWrapper').css("width", essayWidth); + var essayWidth = docWidth - 650; + $('#essayWrapper').css("width", essayWidth); } resize(); $(window).resize(resize); diff --git a/padmaTexts/templates/text_embed.html b/padmaTexts/templates/text_embed.html index ba7a5d4..2593d9d 100644 --- a/padmaTexts/templates/text_embed.html +++ b/padmaTexts/templates/text_embed.html @@ -88,7 +88,12 @@ {% autoescape off %}
-
+ {% ifnotequal text.left_bar '' %} +
+ {{ text.left_bar }} +
+ {% endifnotequal %} +

{{ text.title }}