fixes and patches n stuff

This commit is contained in:
tyuXX 2026-10-21 21:07:54 +00:00
parent 7c7ae8e051
commit 1af973d001
14 changed files with 571 additions and 268 deletions

View file

@ -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">&mdash;</span>
<% } %>