mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
Merge pull request #378 from Jones8683/main
Fix tutorial room not showing in the upcoming lessons block on homepage
This commit is contained in:
@@ -812,7 +812,7 @@ function makeLessonDiv(lesson: any, num: number) {
|
|||||||
<div class="day" id="${code + num}" style="${colour}">
|
<div class="day" id="${code + num}" style="${colour}">
|
||||||
<h2>${type == "class" ? description : type == "tutorial" ? "Tutorial" : "Unknown"}</h2>
|
<h2>${type == "class" ? description : type == "tutorial" ? "Tutorial" : "Unknown"}</h2>
|
||||||
<h3>${staff || "Unknown"}</h3>
|
<h3>${staff || "Unknown"}</h3>
|
||||||
<h3>${type == "class" ? room : type == "tutorial" ? "N/A" : "Unknown"}</h3>
|
<h3>${room || (type == "tutorial" ? "Unknown" : "N/A")}</h3>
|
||||||
<h4>${from || "Unknown"} - ${until || "Unknown"}</h4>
|
<h4>${from || "Unknown"} - ${until || "Unknown"}</h4>
|
||||||
<h5>${attendanceTitle || "Unknown"}</h5>
|
<h5>${attendanceTitle || "Unknown"}</h5>
|
||||||
`;
|
`;
|
||||||
@@ -926,9 +926,8 @@ async function CreateUpcomingSection(assessments: any, activeSubjects: any) {
|
|||||||
|
|
||||||
for (var date in upcomingDates) {
|
for (var date in upcomingDates) {
|
||||||
const assessmentdue = new Date(
|
const assessmentdue = new Date(
|
||||||
(
|
(upcomingDates[date as keyof typeof upcomingDates] as any).assessments[0]
|
||||||
upcomingDates[date as keyof typeof upcomingDates] as any
|
.due,
|
||||||
).assessments[0].due,
|
|
||||||
);
|
);
|
||||||
const specialcase = CheckSpecialDay(Today, assessmentdue);
|
const specialcase = CheckSpecialDay(Today, assessmentdue);
|
||||||
const assessmentDate = createAssessmentDateDiv(
|
const assessmentDate = createAssessmentDateDiv(
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ export function OpenAboutPage() {
|
|||||||
</h1>
|
</h1>
|
||||||
<div style="max-width: 600px; margin: auto;">
|
<div style="max-width: 600px; margin: auto;">
|
||||||
<img
|
<img
|
||||||
src="https://contrib.rocks/image?repo=BetterSEQTA/BetterSEQTA-Plus&columns=14"
|
src="https://contrib.rocks/image?repo=BetterSEQTA/BetterSEQTA-Plus&columns=10"
|
||||||
style="width: 100%; max-width: 500px; height: auto; object-fit: contain; display: block; margin: -110px auto 0;">
|
style="width: 100%; max-width: 500px; height: auto; object-fit: contain; display: block; margin: -80px auto 0;">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`).firstChild as HTMLElement;
|
`).firstChild as HTMLElement;
|
||||||
|
|||||||
Reference in New Issue
Block a user