From d479c1413431744354aea2454f11a552baf08c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 8 Sep 2013 00:51:29 +0200 Subject: [PATCH] make nonstop labels into links --- panikweb/views.py | 7 ++++--- panikweb_templates/templates/emissions/nav.html | 4 +--- panikweb_templates/templates/grid.html | 4 ++-- panikweb_templates/templates/includes/week.html | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/panikweb/views.py b/panikweb/views.py index 103651d..bdfcc41 100644 --- a/panikweb/views.py +++ b/panikweb/views.py @@ -184,15 +184,15 @@ class Grid(TemplateView): if nonstop.start < nonstop.end: nonstops.append([nonstop.start.hour + nonstop.start.minute/60., nonstop.end.hour + nonstop.end.minute/60., - nonstop.title]) + nonstop.title, nonstop.slug]) else: # crossing midnight nonstops.append([nonstop.start.hour + nonstop.start.minute/60., 24, - nonstop.title]) + nonstop.title, nonstop.slug]) nonstops.append([0, nonstop.end.hour + nonstop.end.minute/60., - nonstop.title]) + nonstop.title, nonstop.slug]) nonstops.sort() for i in range(nb_lines): @@ -203,6 +203,7 @@ class Grid(TemplateView): nonstop = [x for x in nonstops if i>=x[0]*2 and i