-
-
-
+ {creatorName(course.creator)}
+
+ ,
+ onSelect: () => void navigate({ to: "/courses/$id", params: { id: course.id } }),
+ },
+ ]}
+ />
)}
diff --git a/src/pages/dashboard-page.tsx b/src/pages/dashboard-page.tsx
index 0fe789c..8303b05 100644
--- a/src/pages/dashboard-page.tsx
+++ b/src/pages/dashboard-page.tsx
@@ -279,7 +279,7 @@ function PortalCard(props: { card: PortalCard }) {
-
+
{icon}
-
+
{t(titleKey)}
+
+
+ {t(ROLE_KEY[minRole!])}
+
+
-
-
-
{t(titleKey)}
-
-
- {t(ROLE_KEY[minRole!])}
-
-
-
-
- {statValue || "—"}
-
- {(suffix) => {t(suffix())}}
-
-
-
{t(descKey)}
+
+
+
+ {statValue}
+
+ {(suffix) => {t(suffix())}}
+
+
+
+
{t(descKey)}
);
@@ -358,11 +347,11 @@ function UpcomingTimeline(props: {
:
}
-
-
{item.title}
-
{item.subtitle}
-
-
- {item.at == null ? props.t("exams.unscheduled") : formatDateTime(item.at, props.locale)}
-
+
{item.title}
+
+
+ {formatDateTime(item.at!, props.locale)}
+
+
+ {" · "}{item.subtitle}
+
+
)}
diff --git a/src/pages/exam-detail-page.tsx b/src/pages/exam-detail-page.tsx
index 876a61f..9b7b364 100644
--- a/src/pages/exam-detail-page.tsx
+++ b/src/pages/exam-detail-page.tsx
@@ -35,6 +35,7 @@ import {
TableHeader,
TableRow,
} from "@/components/ui/table";
+import { TableRowActions } from "@/components/ui/table-row-actions";
import { hasMinRole } from "@/lib/roles";
import { createNow } from "@/lib/create-now";
import { examKindLabel } from "@/lib/exam-labels";
@@ -447,10 +448,7 @@ function ExamDetailContent() {
{t("events.userId")}
{t("form.mark")}
{t("exams.gradedBy")}
-
{t("exams.answerSheet")}
-
-
-
+
{t("common.actions")}
@@ -462,34 +460,29 @@ function ExamDetailContent() {
{personLabel(row.graded_by)}
-
-
+
+ ,
+ onSelect: () => {
+ const rowUserId = personId(row.user);
+ setSheetUserId(sheetUserId() === rowUserId ? null : rowUserId);
+ },
+ },
+ ...(!isFinished()
+ ? [{
+ label: t("common.remove"),
+ icon: ,
+ destructive: true,
+ onSelect: () => setRemoveUserId(personId(row.user)),
+ }]
+ : []),
+ ]}
+ />
-
-
-
-
-
)}
diff --git a/src/pages/exams-page.tsx b/src/pages/exams-page.tsx
index 937e0b8..8fceb37 100644
--- a/src/pages/exams-page.tsx
+++ b/src/pages/exams-page.tsx
@@ -1,5 +1,5 @@
import { For, Show, Suspense, createEffect, createMemo, createResource, createSignal } from "solid-js";
-import { Link } from "@tanstack/solid-router";
+import { useNavigate } from "@tanstack/solid-router";
import { getCourses } from "@/api/getCourses";
import { getExams } from "@/api/getExams";
import { getMyCourses } from "@/api/getMyCourses";
@@ -20,6 +20,7 @@ import { PaginationControls } from "@/components/ui/pagination-controls";
import { Select } from "@/components/ui/select";
import { SidePanel } from "@/components/ui/side-panel";
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
+import { TableRowActions } from "@/components/ui/table-row-actions";
import { createNow } from "@/lib/create-now";
import { examKindLabel } from "@/lib/exam-labels";
import { formatDateTime } from "@/lib/format";
@@ -42,6 +43,7 @@ export default function ExamsPage() {
function ExamsContent() {
const auth = useAuth();
+ const navigate = useNavigate();
const t = useT();
const { locale } = usePreferences();
const now = createNow();
@@ -218,21 +220,21 @@ function ExamsContent() {
-
-
-
-
-
-
+
+
+
+
+
+
{t("exams.title")}
{t("nav.courses")}
- {t("events.starts")}
+ {t("events.starts")}
{t("attempt.status")}
{t("exams.kind")}
- {t("common.actions")}
+ {t("common.actions")}
@@ -248,28 +250,31 @@ function ExamsContent() {
{courseTitle(exam.course)}
- {formatDateTime(exam.starts_at, locale())}
+ {formatDateTime(exam.starts_at, locale())}
{statusLabel(status())}
{examKindLabel(String(exam.kind), t)}
-
-
-
-
-
-
-
-
-
+
+ ,
+ onSelect: () => void navigate({ to: "/exams/$id", params: { id: exam.id } }),
+ },
+ ...(isTeacherPlus()
+ ? [{
+ label: t("common.edit"),
+ icon: ,
+ onSelect: () => setEditingExam(exam),
+ }]
+ : []),
+ ]}
+ />
);