Merge pull request #2920 from dpalou/MOBILE-3799

MOBILE-3799 h5p: Display '-' or '0' in empty columns
main
Noel De Martin 2021-08-09 10:03:01 +02:00 committed by GitHub
commit 7ddb44e465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>