MOBILE-3401 h5p: Do not link My attempts to profile

main
Pau Ferrer Ocaña 2020-06-25 10:44:25 +02:00
parent 8f21507b78
commit 0f218b2187
1 changed files with 6 additions and 3 deletions

View File

@ -9,11 +9,14 @@
</ion-refresher>
<core-loading [hideUntil]="loaded">
<!-- User viewed. -->
<a ion-item text-wrap *ngIf="user" core-user-link [userId]="user.id" [courseId]="courseId" [title]="user.fullname">
<a ion-item text-wrap *ngIf="user && !isCurrentUser" core-user-link [userId]="user.id" [courseId]="courseId" [title]="user.fullname">
<ion-avatar core-user-avatar [user]="user" item-start></ion-avatar>
<h2 *ngIf="!isCurrentUser">{{ user.fullname }}</h2>
<h2 *ngIf="isCurrentUser">{{ 'addon.mod_h5pactivity.myattempts' | translate }}</h2>
<h2>{{ user.fullname }}</h2>
</a>
<ion-item text-wrap *ngIf="user && isCurrentUser">
<ion-avatar core-user-avatar [user]="user" item-start></ion-avatar>
<h2>{{ 'addon.mod_h5pactivity.myattempts' | translate }}</h2>
</ion-item>
<ion-list *ngIf="attemptsData">
<!-- Attempts used to calculate the score. -->