This commit is contained in:
sanj 2010-12-30 20:29:52 +05:30
commit 09dda827f5
3 changed files with 9 additions and 5 deletions

View File

@ -3,12 +3,13 @@ var padmaContainer;
$(function() {
padmaContainer = $('#padmaSidebar');
padmaContainer.data("currentVideo", false);
$(window).resize(function() {
function resize() {
var docWidth = $(document).width();
var essayWidth = docWidth - 400;
$('#leftWrapper').css("width", essayWidth);
});
$(window).trigger("resize");
}
resize();
$(window).resize(resize);
});
function setupPadmaLink(videoObj, data) {

View File

@ -109,7 +109,7 @@
</div>
<div id="authorBio">
<a name="bio"></a>
<h3>About {{ text.author }}</h3>
<h3>{{ text.author }}</h3>
{{ text.author_bio }}
</div>
</div>

View File

@ -10,12 +10,15 @@
h1 {
margin-bottom: 8px;
}
.text {
margin-bottom: 8px;
}
</style>
</head>
<body>
<h1>Padma essays</h1>
{% for t in texts %}
<div>
<div class="text">
<a href="{{t.get_absolute_url}}" title="{{t.title}}">{{ t.title }}</a><br />
by {{ t.author }}
{{ t.abstract|safe }}