diff --git a/src/pages/courses-page.tsx b/src/pages/courses-page.tsx index e1e7886..cd8d6e2 100644 --- a/src/pages/courses-page.tsx +++ b/src/pages/courses-page.tsx @@ -113,6 +113,13 @@ function CoursesContent() { meta: { cellClass: "truncate text-muted-foreground" }, cell: (cell) => personLabel(cell.row.original.creator), }, + { + id: "capacity", + accessorFn: (course) => course.capacity, + header: t("courses.capacity"), + meta: { headerClass: "text-right", cellClass: "text-right tabular-nums text-muted-foreground" }, + cell: (cell) => cell.row.original.capacity ?? "—", + }, { id: "actions", header: t("common.actions"), diff --git a/src/pages/exam-detail-page.tsx b/src/pages/exam-detail-page.tsx index 14571a6..931d3ee 100644 --- a/src/pages/exam-detail-page.tsx +++ b/src/pages/exam-detail-page.tsx @@ -194,6 +194,7 @@ function ExamDetailContent() { if (status === "submitted") return t("attempt.submitted"); if (status === "expired") return t("attempt.expired"); if (status === "no_attempts_left") return t("attempt.noAttemptsLeft"); + if (status === "draft") return t("exams.draft"); if (status === "unscheduled") return t("exams.unscheduled"); if (status === "finished") return t("exams.finished"); if (status === "upcoming") return t("exams.upcoming");