From 61826fc62b3ba223194b7b3705139ca00e2684d5 Mon Sep 17 00:00:00 2001 From: Aurora Virmasalo <93916893+VirmasaloA@users.noreply.github.com> Date: Fri, 10 Jan 2025 12:51:55 +0200 Subject: [PATCH 1/2] CSCEXAM-1393 Fix assessment semantic buttons --- ui/src/app/review/assessment/assessment.component.html | 8 ++++---- .../review/assessment/questions/cloze-test.component.html | 8 ++++++-- .../assessment/questions/essay-question.component.html | 5 +++-- .../questions/multi-choice-question.component.html | 4 ++-- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ui/src/app/review/assessment/assessment.component.html b/ui/src/app/review/assessment/assessment.component.html index 0138eda1f..87d2b9b2c 100644 --- a/ui/src/app/review/assessment/assessment.component.html +++ b/ui/src/app/review/assessment/assessment.component.html @@ -19,14 +19,14 @@

- } {{ exam.name }} - +

@@ -57,12 +57,12 @@

{{ 'i18n_grading_info' | translate }} - +

diff --git a/ui/src/app/review/assessment/questions/cloze-test.component.html b/ui/src/app/review/assessment/questions/cloze-test.component.html index 1f8b9a14a..1c662b29f 100644 --- a/ui/src/app/review/assessment/questions/cloze-test.component.html +++ b/ui/src/app/review/assessment/questions/cloze-test.component.html @@ -8,14 +8,18 @@
- +
diff --git a/ui/src/app/review/assessment/questions/essay-question.component.html b/ui/src/app/review/assessment/questions/essay-question.component.html index 14c7b41c5..6bda588b8 100644 --- a/ui/src/app/review/assessment/questions/essay-question.component.html +++ b/ui/src/app/review/assessment/questions/essay-question.component.html @@ -47,7 +47,8 @@
} - @@ -57,7 +58,7 @@ @if (reviewExpanded) { } - +
diff --git a/ui/src/app/review/assessment/questions/multi-choice-question.component.html b/ui/src/app/review/assessment/questions/multi-choice-question.component.html index cd7acd0f9..a29d1d741 100644 --- a/ui/src/app/review/assessment/questions/multi-choice-question.component.html +++ b/ui/src/app/review/assessment/questions/multi-choice-question.component.html @@ -50,14 +50,14 @@ / {{ getCorrectClaimChoiceOptionScore() }} {{ 'i18n_unit_points' | translate }}
} - + From bd30449df1a6e874da0c43a8c4d5f50ed560869a Mon Sep 17 00:00:00 2001 From: Aurora Virmasalo <93916893+VirmasaloA@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:51:36 +0200 Subject: [PATCH 2/2] CSCEXAM-1289 Fix review-inspections buttons --- .../reviewed-inspections.component.html | 19 ++++++++------ .../unfinished-inspections.component.html | 26 ++++++++++++------- ui/src/assets/i18n/en.json | 3 +++ ui/src/assets/i18n/fi.json | 3 +++ ui/src/assets/i18n/sv.json | 5 +++- 5 files changed, 38 insertions(+), 18 deletions(-) diff --git a/ui/src/app/maturity/listing/reviewed-inspections.component.html b/ui/src/app/maturity/listing/reviewed-inspections.component.html index a6281803a..46c428d8e 100644 --- a/ui/src/app/maturity/listing/reviewed-inspections.component.html +++ b/ui/src/app/maturity/listing/reviewed-inspections.component.html @@ -8,17 +8,17 @@
{{ 'i18n_processed_language_inspections' | translate }} @if (inspections.length > 0) { - + }
- {{ - 'i18n_language_inspection_report_link' | translate - }} +
@@ -248,9 +248,12 @@ - {{ - 'i18n_view' | translate - }} + } diff --git a/ui/src/app/maturity/listing/unfinished-inspections.component.html b/ui/src/app/maturity/listing/unfinished-inspections.component.html index 554ff7822..b3e0513d7 100644 --- a/ui/src/app/maturity/listing/unfinished-inspections.component.html +++ b/ui/src/app/maturity/listing/unfinished-inspections.component.html @@ -10,10 +10,10 @@ {{ 'i18n_ongoing_language_inspections' | translate }} {{ getInspectionAmounts() }} @if (inspections.length > 0) { - + } @@ -189,21 +189,29 @@
} @if (inspection.modifier) { - {{ - 'i18n_view' | translate - }} + } @if (!inspection.modifier && !user.isAdmin) { - {{ 'i18n_assign_to_me' | translate }} - + } @if (!inspection.modifier && user.isAdmin) { - {{ 'i18n_assign_to_me' | translate }} + } diff --git a/ui/src/assets/i18n/en.json b/ui/src/assets/i18n/en.json index f02e7cd5f..ac94576ed 100644 --- a/ui/src/assets/i18n/en.json +++ b/ui/src/assets/i18n/en.json @@ -1190,6 +1190,9 @@ "i18n_hide_participants": "Hide participants", "i18n_exam_owner_info": "Exam needs to have at least one examiner.", "i18n_csv_uploading_cancelled": "CSV file upload cancelled", + "i18n_view_assessment": "View assessments", + "i18n_assign_assessments_to_me": "Start evaluation", + "i18n_view_feedback": "View feedback", "i18n_iop_reservations": "Tenttivierailut EN", "i18n_outbound_reservations": "Muihin korkeakouluihin tehdyt varaukset EN", "i18n_inbound_reservations": "Muista korkeakouluista tehdyt varaukset EN", diff --git a/ui/src/assets/i18n/fi.json b/ui/src/assets/i18n/fi.json index 2b113f1b9..2960d7cb6 100644 --- a/ui/src/assets/i18n/fi.json +++ b/ui/src/assets/i18n/fi.json @@ -1190,6 +1190,9 @@ "i18n_hide_participants": "Piilota osallistujat", "i18n_exam_owner_info": "Tentissä pitää olla vähintään yksi tentaattori.", "i18n_csv_uploading_cancelled": "CSV tiedoston tuonti peruutettu", + "i18n_view_assessment": "Näytä arviointi", + "i18n_assign_assessments_to_me": "Arvioi suoritus", + "i18n_view_feedback": "Näytä palaute", "i18n_iop_reservations": "Tenttivierailut", "i18n_outbound_reservations": "Muihin korkeakouluihin tehdyt varaukset", "i18n_inbound_reservations": "Muista korkeakouluista tehdyt varaukset", diff --git a/ui/src/assets/i18n/sv.json b/ui/src/assets/i18n/sv.json index 701c14c85..c7fd8a7e8 100644 --- a/ui/src/assets/i18n/sv.json +++ b/ui/src/assets/i18n/sv.json @@ -1188,8 +1188,11 @@ "i18n_exam_not_published": "Tentamen inte publicerad. SV", "i18n_show_participants": "Visa deltagare", "i18n_hide_participants": "Dölj deltagare", - "i18n_exam_owner_info": "Tentamen behöver minst en bedömare. SV", + "i18n_exam_owner_info": "Tentamen behöver minst en bedömare.SV", "i18n_csv_uploading_cancelled": "Uppladdning av CSV-fil avbruten", + "i18n_view_assessment": "Visa bedöm SV", + "i18n_assign_assessments_to_me": "Arvioi suoritus SV", + "i18n_view_feedback": "Visa feedback SV", "i18n_iop_reservations": "Tenttivierailut SV", "i18n_outbound_reservations": "Muihin korkeakouluihin tehdyt varaukset SV", "i18n_inbound_reservations": "Muista korkeakouluista tehdyt varaukset SV",