|
58 | 58 | <a ion-button block (click)="review()">{{ 'addon.mod_lesson.review' | translate }}</a> |
59 | 59 | </ion-item> |
60 | 60 |
|
61 | | - <ion-item text-wrap *ngIf="leftDuringTimed && !lesson.timelimit"> |
| 61 | + <ion-item text-wrap *ngIf="leftDuringTimed && !lesson.timelimit && !finishedOffline"> |
62 | 62 | <!-- User left during the session and there is no time limit, ask to continue. --> |
63 | 63 | <p [innerHTML]="'addon.mod_lesson.youhaveseen' | translate"></p> |
64 | 64 | <ion-grid> |
|
73 | 73 | </ion-grid> |
74 | 74 | </ion-item> |
75 | 75 |
|
76 | | - <ion-item text-wrap *ngIf="leftDuringTimed && lesson.timelimit && lesson.retake"> |
| 76 | + <ion-item text-wrap *ngIf="leftDuringTimed && lesson.timelimit && lesson.retake && !finishedOffline"> |
77 | 77 | <!-- User left during the session with time limit and retakes allowed, ask to continue. --> |
78 | 78 | <p [innerHTML]="'addon.mod_lesson.leftduringtimed' | translate"></p> |
79 | 79 | <a ion-button block icon-end (click)="start(false)"> |
|
87 | 87 | <p [innerHTML]="'addon.mod_lesson.leftduringtimednoretake' | translate"></p> |
88 | 88 | </ion-item> |
89 | 89 |
|
90 | | - <ion-item text-wrap *ngIf="!leftDuringTimed"> |
| 90 | + <ion-item text-wrap *ngIf="!leftDuringTimed && !finishedOffline"> |
91 | 91 | <!-- User hasn't left during the session, show a start button. --> |
92 | 92 | <a ion-button block *ngIf="!canManage" icon-end (click)="start(false)"> |
93 | 93 | {{ 'core.start' | translate }} |
|
98 | 98 | <ion-icon name="search"></ion-icon> |
99 | 99 | </a> |
100 | 100 | </ion-item> |
| 101 | + |
| 102 | + <ion-item text-wrap *ngIf="finishedOffline"> |
| 103 | + <!-- There's an attempt finished in offline. Let the user continue, showing the end of lesson. --> |
| 104 | + <a ion-button block icon-end (click)="start(true)"> |
| 105 | + {{ 'addon.mod_lesson.continue' | translate }} |
| 106 | + <ion-icon name="arrow-forward" md="ios-arrow-forward"></ion-icon> |
| 107 | + </a> |
| 108 | + </ion-item> |
101 | 109 | </ion-list> |
102 | 110 | </core-loading> |
103 | 111 | </ng-template> |
|
0 commit comments