summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-06-09 11:25:02 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-06-09 11:25:02 (GMT)
commitaf36a0ece529d149f52300aeb2090bc072438dac (patch)
tree0286f324896ab5eab8e52f3b091358a25155e8e4 /program
parent3fd396b6d940070d3004da09265e1b99559364e0 (diff)
align current_box and recommendations_box with design
Diffstat (limited to 'program')
-rw-r--r--program/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/views.py b/program/views.py
index cfd3749..554641e 100644
--- a/program/views.py
+++ b/program/views.py
@@ -74,10 +74,14 @@ def day_schedule(request, year=None, month=None, day=None):
def current_show(request):
current = TimeSlot.objects.get_or_create_current()
+ previous = current.get_previous_by_start()
next = current.get_next_by_start()
after_next = next.get_next_by_start()
- extra_context = dict(current=current, next=next, after_next=after_next)
+ extra_context = dict(current=current,
+ previous=previous,
+ next=next,
+ after_next=after_next)
return simple.direct_to_template(request, template='program/boxes/current.html', extra_context=extra_context)