diff options
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') |