diff --git a/src/main/webapp/app/course/manage/course-management.service.ts b/src/main/webapp/app/course/manage/course-management.service.ts index 0f442cada5ea..5cc636154f70 100644 --- a/src/main/webapp/app/course/manage/course-management.service.ts +++ b/src/main/webapp/app/course/manage/course-management.service.ts @@ -41,6 +41,9 @@ export class CourseManagementService { private fetchingCoursesForNotifications = false; + private courseOverviewSubject = new BehaviorSubject(false); + isCourseOverview$ = this.courseOverviewSubject.asObservable(); + constructor( private http: HttpClient, private courseStorageService: CourseStorageService, @@ -692,4 +695,12 @@ export class CourseManagementService { // Note: 0 is the default value in case the server returns something that does not make sense return this.http.get(`${this.resourceUrl}/${courseId}/allowed-complaints?teamMode=${teamMode}`) ?? 0; } + + enableCourseOverviewBackground() { + this.courseOverviewSubject.next(true); + } + + disableCourseOverviewBackground() { + this.courseOverviewSubject.next(false); + } } diff --git a/src/main/webapp/app/guided-tour/tours/course-overview-tour.ts b/src/main/webapp/app/guided-tour/tours/course-overview-tour.ts index a76c25357da2..5e5a82fe2fd5 100644 --- a/src/main/webapp/app/guided-tour/tours/course-overview-tour.ts +++ b/src/main/webapp/app/guided-tour/tours/course-overview-tour.ts @@ -60,7 +60,7 @@ export const courseOverviewTour: GuidedTour = { orientation: Orientation.RIGHT, }), new TextTourStep({ - highlightSelector: '.guided-tour .card-footer', + highlightSelector: '.guided-tour .exercise-guided-tour', headlineTranslateKey: 'tour.courseOverview.courseFooter.headline', contentTranslateKey: 'tour.courseOverview.courseFooter.content', orientation: Orientation.TOPLEFT, diff --git a/src/main/webapp/app/overview/course-card.component.html b/src/main/webapp/app/overview/course-card.component.html index 0ab968d60075..4b69401c3d85 100644 --- a/src/main/webapp/app/overview/course-card.component.html +++ b/src/main/webapp/app/overview/course-card.component.html @@ -1,102 +1,97 @@ -
-
- -
-
-
- @if (course.courseIcon) { - - } +
+
+
+ @if (course.courseIcon) { +
+
-
-
- {{ course.title }} -
-
-
-
- @if (exerciseCount === 0) { - Exercises: {{ exerciseCount }} - } - @if (exerciseCount > 0) { - Exercises: {{ exerciseCount }} - } - @if (lectureCount === 0) { - Lectures: {{ lectureCount }} - } - @if (lectureCount > 0) { - Lectures: {{ lectureCount }} - } - @if (examCount === 0) { - Exams: {{ examCount }} - } - @if (examCount > 0) { - Exams: {{ examCount }} - } -
+ } @else { +
+ {{ course.title | slice: 0 : 1 }}
+ } +
+
+ {{ course.title }} +
+
+
+
-
+
- @if (exerciseCount > 0 && (totalReachableScore > 0 || totalAbsoluteScore > 0)) { -
-
-

{{ totalRelativeScore }}%

-
{{ totalAbsoluteScore }} / {{ totalReachableScore }} Pts
-
- - - - : {{ model.value }} - - -
- } @else { -
- } -
- @if (nextRelevantExercise) { -