Skip to content

Commit 2fa061d

Browse files
authored
Merge pull request #2427 from crazyserver/MOBILE-3401
MOBILE-3401 h5p: Do not link My attempts to profile
2 parents 6802a96 + 0f218b2 commit 2fa061d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/addon/mod/h5pactivity/pages/user-attempts/user-attempts.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
</ion-refresher>
1010
<core-loading [hideUntil]="loaded">
1111
<!-- User viewed. -->
12-
<a ion-item text-wrap *ngIf="user" core-user-link [userId]="user.id" [courseId]="courseId" [title]="user.fullname">
12+
<a ion-item text-wrap *ngIf="user && !isCurrentUser" core-user-link [userId]="user.id" [courseId]="courseId" [title]="user.fullname">
1313
<ion-avatar core-user-avatar [user]="user" item-start></ion-avatar>
14-
<h2 *ngIf="!isCurrentUser">{{ user.fullname }}</h2>
15-
<h2 *ngIf="isCurrentUser">{{ 'addon.mod_h5pactivity.myattempts' | translate }}</h2>
14+
<h2>{{ user.fullname }}</h2>
1615
</a>
16+
<ion-item text-wrap *ngIf="user && isCurrentUser">
17+
<ion-avatar core-user-avatar [user]="user" item-start></ion-avatar>
18+
<h2>{{ 'addon.mod_h5pactivity.myattempts' | translate }}</h2>
19+
</ion-item>
1720

1821
<ion-list *ngIf="attemptsData">
1922
<!-- Attempts used to calculate the score. -->

0 commit comments

Comments
 (0)