From c35ee2d16d7047c1a706bf7011f6bc8aad679dae Mon Sep 17 00:00:00 2001 From: rotimi-best Date: Sat, 4 Sep 2021 22:33:35 +0300 Subject: [PATCH] Add new routes - attendance + marks --- .../Course/components/Navigation/index.svelte | 15 +++++--- src/routes/courses/[id]/attendance.svelte | 35 +++++++++++++++++++ src/routes/courses/[id]/marks.svelte | 35 +++++++++++++++++++ 3 files changed, 80 insertions(+), 5 deletions(-) create mode 100644 src/routes/courses/[id]/attendance.svelte create mode 100644 src/routes/courses/[id]/marks.svelte diff --git a/src/components/Course/components/Navigation/index.svelte b/src/components/Course/components/Navigation/index.svelte index cf8a22b0..7b3795bc 100644 --- a/src/components/Course/components/Navigation/index.svelte +++ b/src/components/Course/components/Navigation/index.svelte @@ -89,6 +89,11 @@ to: getNavItemRoute($course.id, 'submissions'), hideSortIcon: true, }, + { + label: 'Marks', + to: getNavItemRoute($course.id, 'marks'), + hideSortIcon: true, + }, // { // label: 'Scoreboard', // to: getNavItemRoute($course.id, 'scoreboard'), @@ -99,11 +104,11 @@ to: getNavItemRoute($course.id, 'people'), hideSortIcon: true, }, - // { - // label: 'Timetable', - // to: getNavItemRoute($course.id, 'timetable'), - // hideSortIcon: true, - // }, + { + label: 'Attendance', + to: getNavItemRoute($course.id, 'attendance'), + hideSortIcon: true, + }, ]; } diff --git a/src/routes/courses/[id]/attendance.svelte b/src/routes/courses/[id]/attendance.svelte new file mode 100644 index 00000000..4d2647f4 --- /dev/null +++ b/src/routes/courses/[id]/attendance.svelte @@ -0,0 +1,35 @@ + + + + + + + + diff --git a/src/routes/courses/[id]/marks.svelte b/src/routes/courses/[id]/marks.svelte new file mode 100644 index 00000000..71783afa --- /dev/null +++ b/src/routes/courses/[id]/marks.svelte @@ -0,0 +1,35 @@ + + + + + + + +