diff --git a/src/pages/event-detail-page.tsx b/src/pages/event-detail-page.tsx
index 5c336f4..94e59bc 100644
--- a/src/pages/event-detail-page.tsx
+++ b/src/pages/event-detail-page.tsx
@@ -59,6 +59,7 @@ function EventDetailContent() {
const [otherUserId, setOtherUserId] = createSignal("");
const [editing, setEditing] = createSignal(false);
const [deleteOpen, setDeleteOpen] = createSignal(false);
+ const [studentAttendanceOpen, setStudentAttendanceOpen] = createSignal(false);
const [attendanceOpen, setAttendanceOpen] = createSignal(false);
const [error, setError] = createSignal("");
const [pending, setPending] = createSignal(false);
@@ -116,48 +117,35 @@ function EventDetailContent() {
accent="sky"
eyebrow={t("events.title")}
title={ev().title}
- description={`${formatDateTime(ev().starts_at, locale())} → ${formatDateTime(ev().ends_at, locale())}`}
+ description={`${formatDateTime(ev().starts_at, locale())} - ${formatDateTime(ev().ends_at, locale())}${ev().description ? ` - ${ev().description}` : ""}`}
actions={
-
-
-
-
-
-
-
-
+
+
+
+ setEditing(true)}>
+
+ {t("common.edit")}
+
+ setDeleteOpen(true)}>
+
+ {t("common.delete")}
+
+
+
+
}
- >
-
- {ev().description || "—"}
-
- {audienceLabel(ev().audience, t)}
-
+ />
+
+
+ {audienceLabel(ev().audience, t)}
+
+
-
-
-
{t("events.studentAttendance")}
-
{t("events.studentAttendanceHelp")}
-
-
+
setStudentAttendanceOpen((open) => !open)}
+ title={t("events.studentAttendance")}
+ description={t("events.studentAttendanceHelp")}
+ >
+
-
+
diff --git a/src/pages/exam-detail-page.tsx b/src/pages/exam-detail-page.tsx
index b078ce4..e755ace 100644
--- a/src/pages/exam-detail-page.tsx
+++ b/src/pages/exam-detail-page.tsx
@@ -84,7 +84,7 @@ function ExamDetailContent() {
const [sheetUserId, setSheetUserId] = createSignal(null);
const [gradeOpen, setGradeOpen] = createSignal(false);
const [openSections, setOpenSections] = createSignal({
- schedule: true,
+ schedule: false,
ownResult: false,
answerSheet: false,
statistics: false,
@@ -272,57 +272,44 @@ function ExamDetailContent() {
description={ex().description || "—"}
actions={
-
-
-
- {t("common.back")}
-
-
-
-
-
-
- {t("attempt.openRoom")}
+
+
+
+ {t("common.back")}
-
-
-
-
-
- {isFinished() ? t("exams.finalState") : t("exams.liveMonitor")}
-
-
-
-
-
- setEditing(true)}
- >
-
- {t("common.edit")}
-
- setDeleteOpen(true)}
- >
-
- {t("common.delete")}
-
-
-
-
+
+
+
+
+ {t("attempt.openRoom")}
+
+
+
+
+
+
+
+ {isFinished() ? t("exams.finalState") : t("exams.liveMonitor")}
+
+
+
+
+
+ setEditing(true)}>
+
+ {t("common.edit")}
+
+ setDeleteOpen(true)}>
+
+ {t("common.delete")}
+
+
+
+
}
- >
-
+ />
+
{t("exams.draft")}
-