exercise.includedInOverallScore === IncludedInOverallScore.INCLUDED_AS_BONUS ? 0 : exercise.maxPoints
}}
+
+
+ {{
+ exercise.includedInOverallScore === IncludedInOverallScore.INCLUDED_AS_BONUS ? 0 : exercise.maxPoints
+ }}
+ |
{{
exercise.includedInOverallScore === IncludedInOverallScore.INCLUDED_AS_BONUS ? exercise.maxPoints : exercise.bonusPoints
@@ -52,6 +60,9 @@
{{ getMaxNormalPointsSum() }}
|
+
+ {{ getAchievedPointsPercentageSum() }}
+ |
{{ getMaxBonusPointsSum() }}
|
diff --git a/src/main/webapp/app/exam/participate/summary/points-summary/exam-points-summary.component.ts b/src/main/webapp/app/exam/participate/summary/points-summary/exam-points-summary.component.ts
index 8c11f3933ad6..e76b973e4dfc 100644
--- a/src/main/webapp/app/exam/participate/summary/points-summary/exam-points-summary.component.ts
+++ b/src/main/webapp/app/exam/participate/summary/points-summary/exam-points-summary.component.ts
@@ -1,6 +1,6 @@
import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
import dayjs from 'dayjs/esm';
-import { Exercise, IncludedInOverallScore } from 'app/entities/exercise.model';
+import { Exercise, IncludedInOverallScore, getIcon } from 'app/entities/exercise.model';
import { ArtemisServerDateService } from 'app/shared/server-date.service';
import { ExerciseService } from 'app/exercises/shared/exercise/exercise.service';
import { GradeType } from 'app/entities/grading-scale.model';
@@ -92,6 +92,10 @@ export class ExamPointsSummaryComponent implements OnInit {
return this.studentExamWithGrade?.maxPoints ?? 0;
}
+ getAchievedPointsPercentageSum() {
+ return 10;
+ }
+
getAchievedPoints(exercise: Exercise): number {
return this.studentExamWithGrade?.achievedPointsPerExercise?.[exercise.id!] ?? 0;
}
@@ -119,4 +123,6 @@ export class ExamPointsSummaryComponent implements OnInit {
}
return false;
}
+
+ protected readonly getIcon = getIcon;
}
diff --git a/src/main/webapp/i18n/de/exam.json b/src/main/webapp/i18n/de/exam.json
index d4ff9892d469..3d4dc73552f2 100644
--- a/src/main/webapp/i18n/de/exam.json
+++ b/src/main/webapp/i18n/de/exam.json
@@ -82,6 +82,7 @@
"total": "Gesamt",
"yourPoints": "Deine Punkte",
"maxPoints": "Erreichbare Punkte",
+ "achievedPercentage": "Erreichte Punkte in %",
"maxBonus": "Erreichbare Bonuspunkte",
"youAchievedWithBonus": "Du hast {{achievedPoints}} Punkte von {{normalPoints}} möglichen Punkten (einschließlich Bonuspunkten) erreicht.",
"youAchieved": "Du hast {{achievedPoints}} von möglichen {{normalPoints}} Punkten.",
diff --git a/src/main/webapp/i18n/en/exam.json b/src/main/webapp/i18n/en/exam.json
index 7e570879ad5e..90c9fe147a9e 100644
--- a/src/main/webapp/i18n/en/exam.json
+++ b/src/main/webapp/i18n/en/exam.json
@@ -82,6 +82,7 @@
"total": "Total",
"yourPoints": "Your Points",
"maxPoints": "Achievable Points",
+ "achievedPercentage": "Achieved Percentage",
"maxBonus": "Achievable Bonus Points",
"youAchievedWithBonus": "You achieved {{achievedPoints}} out of a maximum {{normalPoints}} possible points (including bonus points).",
"youAchieved": "You achieved {{achievedPoints}} out of {{normalPoints}} possible points.",
|