Merge pull request #3513 from dpalou/MOBILE-4081

Mobile 4081
main
Alfonso Salces 2022-12-16 15:07:24 +01:00 committed by GitHub
commit 9cb4819874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 22 deletions

View File

@ -52,7 +52,7 @@
<div *ngIf="question.status || question.readableMark" slot="end" <div *ngIf="question.status || question.readableMark" slot="end"
class="ion-text-wrap ion-margin-horizontal addon-mod_quiz-question-note"> class="ion-text-wrap ion-margin-horizontal addon-mod_quiz-question-note">
<p *ngIf="question.status" class="block">{{question.status}}</p> <p *ngIf="question.status" class="block">{{question.status}}</p>
<p *ngIf="question.readableMark">{{ question.readableMark }}</p> <p *ngIf="question.readableMark" [innerHTML]="question.readableMark"></p>
</div> </div>
</ion-item-divider> </ion-item-divider>
@ -149,19 +149,20 @@
</ion-button> </ion-button>
</ion-card> </ion-card>
<div collapsible-footer appearOnBottom *ngIf="!quizAborted && showSummary && summaryQuestions.length && loaded" slot="fixed" <div collapsible-footer appearOnBottom *ngIf="!quizAborted && showSummary && summaryQuestions.length && loaded" slot="fixed">
class="list-item-limited-width"> <div class="list-item-limited-width">
<ion-button *ngIf="preventSubmitMessages.length" expand="block" class="ion-margin ion-text-wrap" [href]="moduleUrl" core-link <ion-button *ngIf="preventSubmitMessages.length" expand="block" class="ion-margin ion-text-wrap" [href]="moduleUrl"
[showBrowserWarning]="false"> core-link [showBrowserWarning]="false">
{{ 'core.openinbrowser' | translate }} {{ 'core.openinbrowser' | translate }}
<ion-icon name="fas-external-link-alt" slot="end" aria-hidden="true"></ion-icon> <ion-icon name="fas-external-link-alt" slot="end" aria-hidden="true"></ion-icon>
</ion-button> </ion-button>
<!-- Button to submit the quiz. --> <!-- Button to submit the quiz. -->
<ion-button *ngIf="!attempt!.finishedOffline && !preventSubmitMessages.length" expand="block" class="ion-margin ion-text-wrap" <ion-button *ngIf="!attempt!.finishedOffline && !preventSubmitMessages.length" expand="block"
(click)="finishAttempt(true)"> class="ion-margin ion-text-wrap" (click)="finishAttempt(true)">
{{ 'addon.mod_quiz.submitallandfinish' | translate }} {{ 'addon.mod_quiz.submitallandfinish' | translate }}
</ion-button> </ion-button>
</div> </div>
</div>
</core-loading> </core-loading>
</ion-content> </ion-content>

View File

@ -13,7 +13,8 @@ $quiz-timer-iterations: 15 !default;
border-bottom: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke);
} }
core-timer .core-timer { core-timer ::ng-deep {
.core-timer {
// Make the timer go red when it's reaching 0. // Make the timer go red when it's reaching 0.
@for $i from 0 through $quiz-timer-iterations { @for $i from 0 through $quiz-timer-iterations {
&.core-timer-timeleft-#{$i} { &.core-timer-timeleft-#{$i} {
@ -27,4 +28,5 @@ $quiz-timer-iterations: 15 !default;
} }
} }
} }
}
} }

View File

@ -92,7 +92,7 @@
<div class="ion-text-wrap ion-margin-horizontal addon-mod_quiz-question-note" slot="end" <div class="ion-text-wrap ion-margin-horizontal addon-mod_quiz-question-note" slot="end"
*ngIf="question.status || question.readableMark"> *ngIf="question.status || question.readableMark">
<p *ngIf="question.status">{{question.status}}</p> <p *ngIf="question.status">{{question.status}}</p>
<p *ngIf="question.readableMark">{{question.readableMark}}</p> <p *ngIf="question.readableMark" [innerHTML]="question.readableMark"></p>
</div> </div>
</ion-item-divider> </ion-item-divider>