Skip to content

Commit

Permalink
Add progress text to exam review list
Browse files Browse the repository at this point in the history
  • Loading branch information
VirmasaloA committed Jun 19, 2024
1 parent f2f5834 commit 2b99131
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion ui/src/app/review/listing/categories/in-progress.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
(click)="setPredicate('examParticipation.deadline')"
></xm-table-sort>
</th>
<th class="with-space with-top">{{ 'i18n_inspection_status' | translate }}</th>
<th class="with-space with-top">{{ 'i18n_grading_inspector' | translate }}</th>
<th class="with-space with-top">{{ 'i18n_exam_state' | translate }}</th>
</tr>
</thead>
Expand Down Expand Up @@ -188,6 +188,14 @@
<span [ngClass]="isOwner(inspection.user) ? 'fw-bold' : ''">
{{ inspection.user.firstName }} {{ inspection.user.lastName }}
</span>
<span>
@if (inspection.ready) {
<span>({{ 'i18n_ready' | translate }})</span>
}
@if (!inspection.ready) {
<span>({{ 'i18n_in_progress' | translate }})</span>
}
</span>
</span>
}
}
Expand Down
10 changes: 9 additions & 1 deletion ui/src/app/review/listing/speed-review.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
(click)="setPredicate('examParticipation.deadline')"
></xm-table-sort>
</th>
<th class="with-space">{{ 'i18n_inspection_status' | translate }}</th>
<th class="with-space">{{ 'i18n_grading_inspector' | translate }}</th>
<th class="with-space">{{ 'i18n_exam_state' | translate }}</th>
<th class="with-space with-top">{{ 'i18n_total_score' | translate }}</th>
<th class="with-top">{{ 'i18n_grade' | translate }}</th>
Expand Down Expand Up @@ -108,6 +108,14 @@
>
{{ inspection.user.firstName }} {{ inspection.user.lastName }}
</span>
<span>
@if (inspection.ready) {
<span>({{ 'i18n_ready' | translate }})</span>
}
@if (!inspection.ready) {
<span>({{ 'i18n_in_progress' | translate }})</span>
}
</span>
</span>
</div>
}
Expand Down

0 comments on commit 2b99131

Please sign in to comment.