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() { $(function() {
padmaContainer = $('#padmaSidebar'); padmaContainer = $('#padmaSidebar');
padmaContainer.data("currentVideo", false); padmaContainer.data("currentVideo", false);
$(window).resize(function() { function resize() {
var docWidth = $(document).width(); var docWidth = $(document).width();
var essayWidth = docWidth - 400; var essayWidth = docWidth - 400;
$('#leftWrapper').css("width", essayWidth); $('#leftWrapper').css("width", essayWidth);
}); }
$(window).trigger("resize"); resize();
$(window).resize(resize);
}); });
function setupPadmaLink(videoObj, data) { function setupPadmaLink(videoObj, data) {

View File

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

View File

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