From b9365fd3ffe7308fe01ab5479cbd25e4b08407f6 Mon Sep 17 00:00:00 2001
From: Andreas Valder <andreasv@fsmpi.rwth-aachen.de>
Date: Wed, 31 Aug 2016 09:00:59 +0200
Subject: [PATCH] linked titles in schedule

---
 templates/schedule.html | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/templates/schedule.html b/templates/schedule.html
index 00724ee..21c7b55 100644
--- a/templates/schedule.html
+++ b/templates/schedule.html
@@ -15,7 +15,12 @@
 					{% for d in days  if (d.index < 5) or (d.lectures|length) > 0 %}
 						{% for i in range(1,d.maxcol+1) %}
 						{% for l in d.lectures|selectattr('schedule_col','equalto',i) if (((l.time_asdate.time() > t) and (l.time_asdate.time() < times[time_loop.index+1])) != (l.time_asdate.time() == t ) ) %}
-						<td rowspan="{{l.duration / 15}}" style="background: lightgrey;"><p class="small"><strong>{{l.short}}</strong><br>{{l.time_asdate.strftime("%H:%M")}} - {{l.end_asdate.strftime("%H:%M")}}<br>{{l.place}}</p> </td>
+						<td rowspan="{{l.duration / 15}}" style="background: lightgrey;">
+							<p class="small">
+							<strong><a href="{{url_for('course', id=l['handle'])}}#{{l.id}}">{{l.short}}</a></strong><br>
+								{{l.time_asdate.strftime("%H:%M")}} - {{l.end_asdate.strftime("%H:%M")}}<br>
+								{{l.place}}</p>
+						</td>
 							{% else %}
 								{% for l in d.lectures|selectattr('schedule_col','equalto',i) if (l.time_asdate.time() < t) and (l.end_asdate.time() > t) %}
 								{% else %}
-- 
GitLab