MOBILE-3799 h5p: Display '-' or '0' in empty columns

main
Dani Palou 2021-08-06 15:12:53 +02:00
parent 85ac2b0bb5
commit 560c4b2c74
1 changed files with 3 additions and 1 deletions

View File

@ -45,14 +45,16 @@
<span *ngIf="user.attempts.length">
{{ user.attempts[user.attempts.length - 1].timemodified | coreFormatDate:'strftimedatetimeshort' }}
</span>
<span *ngIf="!user.attempts.length">-</span>
</ion-col>
<ion-col class="ion-text-center" size="2">
<span *ngIf="user.score !== undefined">
{{ 'core.percentagenumber' | translate: {$a: user.score} }}
</span>
<span *ngIf="user.score === undefined">-</span>
</ion-col>
<ion-col class="ion-text-center" size="2">
<span *ngIf="user.attempts.length">{{user.attempts.length}}</span>
{{user.attempts.length}}
</ion-col>
</ion-row>
</ion-label>