Added links to teachers and chambers

This commit is contained in:
Bram van der Veen 2015-06-17 12:35:32 +02:00
parent d81c27550f
commit 3ed79099f8
2 changed files with 10 additions and 3 deletions

View file

@ -11,11 +11,13 @@ div.schedule
div.hour.title
span= days[match.json.indexOf(day)]
each hour in day
if hour.teacher != 'vrij\r'
if hour.teacher != 'vrij\r' && hour.teacher != 'vrij'
div.hour(class=hour.changed == 'true' ? 'changed' : '')
each subhour in hour.teacher
span.teacher(class='sub_' + hour.teacher.length)= hour.teacher[hour.teacher.indexOf(subhour)]
span.chamber(class='sub_' + hour.teacher.length)= hour.chamber[hour.teacher.indexOf(subhour)]
span.teacher(class='sub_' + hour.teacher.length)
a(href=hour.teacher[hour.teacher.indexOf(subhour)])= hour.teacher[hour.teacher.indexOf(subhour)]
span.chamber(class='sub_' + hour.teacher.length)
a(href=hour.chamber[hour.teacher.indexOf(subhour)])= hour.chamber[hour.teacher.indexOf(subhour)]
span.course(class='sub_' + hour.teacher.length)= hour.course[hour.teacher.indexOf(subhour)]
if match.json.indexOf(day) == 0

View file

@ -70,6 +70,11 @@ div.schedule {
border-left: 1px solid #FFF;
position: relative;
a {
text-decoration: none;
color: inherit;
}
span {
display: inline-block;
width: 33%;