diff options
author | hardythe1 | 2013-11-27 12:17:06 +0530 |
---|---|---|
committer | hardythe1 | 2013-11-27 12:17:06 +0530 |
commit | f2d4d20e0906c89ac655b48f242c9f0bfa8b741c (patch) | |
tree | 4e658d40041ea3498c92e26d33e9f8c69625e871 /website/views.py | |
parent | 1d6100617b0eae1bdd7a4c4b5fb8721c29f61e79 (diff) | |
download | SciPy2013-f2d4d20e0906c89ac655b48f242c9f0bfa8b741c.tar.gz SciPy2013-f2d4d20e0906c89ac655b48f242c9f0bfa8b741c.tar.bz2 SciPy2013-f2d4d20e0906c89ac655b48f242c9f0bfa8b741c.zip |
adding list of abstracts page
Diffstat (limited to 'website/views.py')
-rw-r--r-- | website/views.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/website/views.py b/website/views.py index c3f2918..747f9d4 100644 --- a/website/views.py +++ b/website/views.py @@ -1,5 +1,6 @@ from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response +from models import Paper # Home section def home_page(request): @@ -39,6 +40,21 @@ def schedule_page(request): def invited_speakers_page(request): return render_to_response('invited_speakers.html') +def list_of_abstracts(request): + context = {} + papers = Paper.objects.all() + context['papers'] = papers + return render_to_response('list_abstracts.html', context) + +def abstract_details(request, paper_id=None): + context = {} + paper = Paper.objects.get(id=paper_id) + context['paper'] = paper + if(len(paper.abstract)<=0): + return HttpResponse(paper.abstract) + return render_to_response('abstract_details.html', context) + + def accepted_abstracts_page(request): return render_to_response('accepted_abstracts.html') |