Revert "Add Saturday and Sunday to weekly schedule view"

This reverts commit 0eacd2356f.
This commit is contained in:
Johannes
2026-03-12 22:00:32 +01:00
parent 0eacd2356f
commit 60a1f2a934

View File

@@ -6258,7 +6258,7 @@
return a; return a;
} }
static getWeekOverviewHtml(e, t) { static getWeekOverviewHtml(e, t) {
let a = { 1: [], 2: [], 3: [], 4: [], 5: [], 6: [], 0: [] }; let a = { 1: [], 2: [], 3: [], 4: [], 5: [] };
const i = s.getInstance(), const i = s.getInstance(),
o = n.weekdays; o = n.weekdays;
for (const t of e) { for (const t of e) {
@@ -6266,12 +6266,12 @@
s = `<a class="onClickLink" onClick="${wi.register(() => { s = `<a class="onClickLink" onClick="${wi.register(() => {
_.getInstance().inAppNavigation("?page=class&classId=" + e.id); _.getInstance().inAppNavigation("?page=class&classId=" + e.id);
})}">${e.name}</a>`; })}">${e.name}</a>`;
for (const t of e.days) t < 0 || t > 6 || a[t].push(s); for (const t of e.days) t < 1 || t > 5 || a[t].push(s);
} }
for (const e in a) for (const e in a)
a[e].length <= 0 && a[e].length <= 0 &&
a[e].push(i.T("schedule-no-classes", "No classes")); a[e].push(i.T("schedule-no-classes", "No classes"));
return `<table class="d-none d-lg-table table table-hover">\n <thead>\n <tr>\n <th scope="col" ${1 == t ? 'class="text-warning"' : ""}>${o[1]}</th>\n <th scope="col" ${2 == t ? 'class="text-warning"' : ""}>${o[2]}</th>\n <th scope="col" ${3 == t ? 'class="text-warning"' : ""}>${o[3]}</th>\n <th scope="col" ${4 == t ? 'class="text-warning"' : ""}>${o[4]}</th>\n <th scope="col" ${5 == t ? 'class="text-warning"' : ""}>${o[5]}</th>\n <th scope="col" ${6 == t ? 'class="text-warning"' : ""}>${o[6]}</th>\n <th scope="col" ${0 == t ? 'class="text-warning"' : ""}>${o[0]}</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>${a[1].join("<br>")}</td>\n <td>${a[2].join("<br>")}</td>\n <td>${a[3].join("<br>")}</td>\n <td>${a[4].join("<br>")}</td>\n <td>${a[5].join("<br>")}</td>\n <td>${a[6].join("<br>")}</td>\n <td>${a[0].join("<br>")}</td>\n </tr>\n </tbody>\n </table>\n <table class="table table-hover d-lg-none">\n <tbody>\n <tr>\n <th scope="row" ${1 == t ? 'class="text-warning"' : ""}>${o[1]}</th>\n <td>${a[1].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${2 == t ? 'class="text-warning"' : ""}>${o[2]}</th>\n <td>${a[2].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${3 == t ? 'class="text-warning"' : ""}>${o[3]}</th>\n <td>${a[3].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${4 == t ? 'class="text-warning"' : ""}>${o[4]}</th>\n <td>${a[4].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${5 == t ? 'class="text-warning"' : ""}>${o[5]}</th>\n <td>${a[5].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${6 == t ? 'class="text-warning"' : ""}>${o[6]}</th>\n <td>${a[6].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${0 == t ? 'class="text-warning"' : ""}>${o[0]}</th>\n <td>${a[0].join("<br>")}</td>\n </tr>\n </tbody>\n </table>`; return `<table class="d-none d-lg-table table table-hover">\n <thead>\n <tr>\n <th scope="col" ${1 == t ? 'class="text-warning"' : ""}>${o[1]}</th>\n <th scope="col" ${2 == t ? 'class="text-warning"' : ""}>${o[2]}</th>\n <th scope="col" ${3 == t ? 'class="text-warning"' : ""}>${o[3]}</th>\n <th scope="col" ${4 == t ? 'class="text-warning"' : ""}>${o[4]}</th>\n <th scope="col" ${5 == t ? 'class="text-warning"' : ""}>${o[5]}</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>${a[1].join("<br>")}</td>\n <td>${a[2].join("<br>")}</td>\n <td>${a[3].join("<br>")}</td>\n <td>${a[4].join("<br>")}</td>\n <td>${a[5].join("<br>")}</td>\n </tr>\n </tbody>\n </table>\n <table class="table table-hover d-lg-none">\n <tbody>\n <tr>\n <th scope="row" ${1 == t ? 'class="text-warning"' : ""}>${o[1]}</th>\n <td>${a[1].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${2 == t ? 'class="text-warning"' : ""}>${o[2]}</th>\n <td>${a[2].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${3 == t ? 'class="text-warning"' : ""}>${o[3]}</th>\n <td>${a[3].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${4 == t ? 'class="text-warning"' : ""}>${o[4]}</th>\n <td>${a[4].join("<br>")}</td>\n </tr>\n <tr>\n <th scope="row" ${5 == t ? 'class="text-warning"' : ""}>${o[5]}</th>\n <td>${a[5].join("<br>")}</td>\n </tr>\n </tbody>\n </table>`;
} }
static requestUserFeedback() { static requestUserFeedback() {
let e = "requestUserFeedback-" + n.getRandomString(); let e = "requestUserFeedback-" + n.getRandomString();