remove first_article nonsense

This commit is contained in:
Sanj 2011-07-10 06:45:13 +05:30
parent 209b4febb2
commit 459ce97f7d
3 changed files with 5 additions and 4 deletions

View File

@ -46,8 +46,8 @@ def publish(request):
def browse(request): def browse(request):
user = request.user user = request.user
themes = ArticleTheme.objects.all() themes = ArticleTheme.objects.all()
first_article = Article.objects.all().filter(published=True).exclude(name__istartswith='template')[0].get_list_dict(user) # first_article = Article.objects.all().filter(published=True).exclude(name__istartswith='template')[0].get_list_dict(user)
context = RequestContext(request, {'themes': themes, 'first_article': first_article}) context = RequestContext(request, {'themes': themes})
return render_to_response("main/browse.html", context) return render_to_response("main/browse.html", context)
def faq(request): def faq(request):

View File

@ -18,6 +18,7 @@ $(function() {
var a = articles[i]; var a = articles[i];
var $li = $('<li />').addClass("articleItem").text(a.title).data("article", a).appendTo($ul); var $li = $('<li />').addClass("articleItem").text(a.title).data("article", a).appendTo($ul);
} }
$('.articleItem').eq(0).click();
}); });
}); });

View File

@ -18,11 +18,11 @@ Browse Publications
<div id="browsePublicationsleft"> <div id="browsePublicationsleft">
<!-- <h5>Recent Publications:</h5> --> <!-- <h5>Recent Publications:</h5> -->
<iframe src="{{ first_article.iframe_url }}" width="320" height="400" id="iframePreview"></iframe> <iframe src="" width="320" height="400" id="iframePreview"></iframe>
<!-- <img src="http://camputer.org/ftp/public/Issue00.jpg"></a> --> <!-- <img src="http://camputer.org/ftp/public/Issue00.jpg"></a> -->
<p> <p>
<a id="articleLink" href="first_article.web_url" title="View as Webpage!">{{ first_article.title }}</a> <a id="articleLink" href="" title="View as Webpage!"></a>
</p> </p>