Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exam mode: Show number of accepted complaints in assessment dashboard #7144

Merged
merged 8 commits into from
Oct 3, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</td>
<td>{{ tutor.points }}</td>
<td>{{ tutor.numberOfAssessments }}</td>
<ng-container *ngIf="course && !course.isAtLeastInstructor; else atLeastInstructor">
<ng-container *ngIf="course && !course.isAtLeastInstructor && !(this.exercise && this.exercise.isAtLeastInstructor); else atLeastInstructor">
<td>{{ tutor.numberOfAcceptedComplaints }}</td>
<td *ngIf="!isExamMode">{{ tutor.numberOfNotAnsweredMoreFeedbackRequests }}</td>
</ng-container>
Expand All @@ -78,7 +78,12 @@
</ng-container>

<ng-container *ngIf="!isExerciseDashboard && course && course.id">
<td>
<td *ngIf="isExamMode && exam">
valentin-boehm marked this conversation as resolved.
Show resolved Hide resolved
<a [routerLink]="['/course-management', course.id, 'exams', exam.id, 'complaints']" [queryParams]="{ tutorId: tutor.userId }">
{{ tutor.numberOfAcceptedComplaints }}
</a>
</td>
<td *ngIf="!isExamMode">
<a [routerLink]="['/course-management', course.id, 'complaints']" [queryParams]="{ tutorId: tutor.userId }">
{{ tutor.numberOfAcceptedComplaints }}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export class TutorLeaderboardComponent implements OnInit {
if (this.exercise && this.exercise.course) {
this.course = this.exercise.course;
this.isExerciseDashboard = true;
} else if (this.exercise && this.exam && this.exam.course) {
this.course = this.exam.course;
this.isExerciseDashboard = true;
}
this.isExamMode = !!this.exam;
Strohgelaender marked this conversation as resolved.
Show resolved Hide resolved
this.sortRows();
Expand Down