Added day names to the schedule view

This commit is contained in:
Bram van der Veen 2015-06-14 22:50:49 +02:00
parent 3f138bf055
commit 5d2508ed55
2 changed files with 15 additions and 0 deletions

View file

@ -3,9 +3,13 @@
include header include header
include search include search
- var days = ['Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag', 'Zondag'];
div.schedule div.schedule
each day in match.json each day in match.json
div.day div.day
div.hour.title
span= days[match.json.indexOf(day)]
each hour in day each hour in day
if hour.teacher != 'vrij\r' if hour.teacher != 'vrij\r'
div.hour(class=hour.changed == 'true' ? 'changed' : '') div.hour(class=hour.changed == 'true' ? 'changed' : '')

View file

@ -90,6 +90,17 @@ div.schedule {
color: red !important; color: red !important;
} }
&.title {
text-align: center;
background-color: #E1E1E1;
border-color: #E1E1E1;
span {
text-align: center;
width: 100%;
}
}
.free { .free {
.changed; .changed;
text-align: center; text-align: center;