fixes and patches n stuff
This commit is contained in:
parent
7c7ae8e051
commit
1af973d001
14 changed files with 571 additions and 268 deletions
|
|
@ -174,14 +174,18 @@
|
|||
</td>
|
||||
|
||||
<% [1, 2, 3, 4, 5].forEach(function(d) { %>
|
||||
<% const lesson = (filteredSchedule[d] || []).find(l => l.periodNumber === p); %>
|
||||
<td class="grid-lesson-cell <%= lesson ? 'has-lesson' : '' %>">
|
||||
<% if (lesson) { %>
|
||||
<div class="grid-lesson-subject"><%= lesson.subject %></div>
|
||||
<div class="grid-lesson-teacher"><%= lesson.teacher %></div>
|
||||
<% if (lesson.station) { %>
|
||||
<span class="grid-station-tag"><%= lesson.station %></span>
|
||||
<% } %>
|
||||
<% const dayLessons = (filteredSchedule[d] || []).filter(l => l.periodNumber === p); %>
|
||||
<td class="grid-lesson-cell <%= dayLessons.length > 0 ? 'has-lesson' : '' %>">
|
||||
<% if (dayLessons.length > 0) { %>
|
||||
<% dayLessons.forEach(function(lesson) { %>
|
||||
<div class="grid-lesson-item">
|
||||
<div class="grid-lesson-subject"><%= lesson.subject %></div>
|
||||
<div class="grid-lesson-teacher"><%= lesson.teacher %></div>
|
||||
<% if (lesson.station) { %>
|
||||
<span class="grid-station-tag"><%= lesson.station %></span>
|
||||
<% } %>
|
||||
</div>
|
||||
<% }); %>
|
||||
<% } else { %>
|
||||
<span class="grid-empty-cell">—</span>
|
||||
<% } %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue