diff --git a/templates/schedule.html b/templates/schedule.html index 00724eed6b7e99aa92ea1cf007cedfcd92fbd363..21c7b55782ec400e01aa4d5f0d174dbca5c97b5f 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 %}