2021-03-04 14:43:23 +01:00
|
|
|
<!-- Buttons to add to the header. -->
|
|
|
|
<core-navbar-buttons slot="end">
|
2022-02-23 14:47:38 +01:00
|
|
|
<ion-button *ngIf="!showLoading" (click)="showToc()" aria-haspopup="true" [attr.aria-label]="'addon.mod_imscp.toc' | translate">
|
2021-04-27 13:14:31 +02:00
|
|
|
<ion-icon name="fas-bookmark" slot="icon-only" aria-hidden="true"></ion-icon>
|
2021-03-04 14:43:23 +01:00
|
|
|
</ion-button>
|
2022-02-17 15:55:10 +01:00
|
|
|
|
2022-02-17 13:58:10 +01:00
|
|
|
<ion-button fill="clear" (click)="openModuleSummary()" aria-haspopup="true" [attr.aria-label]="'core.info' | translate">
|
2022-02-17 15:55:10 +01:00
|
|
|
<ion-icon name="fas-info-circle" slot="icon-only" aria-hidden="true"></ion-icon>
|
|
|
|
</ion-button>
|
2021-03-04 14:43:23 +01:00
|
|
|
</core-navbar-buttons>
|
|
|
|
|
|
|
|
<!-- Content. -->
|
2022-02-24 10:42:12 +01:00
|
|
|
<core-loading [hideUntil]="!showLoading" class="safe-area-padding core-loading-full-height">
|
2021-03-04 14:43:23 +01:00
|
|
|
|
2021-05-07 10:09:31 +02:00
|
|
|
<!-- Activity info. -->
|
2022-01-19 15:22:10 +01:00
|
|
|
<core-course-module-info [module]="module">
|
2021-05-07 10:09:31 +02:00
|
|
|
</core-course-module-info>
|
|
|
|
|
2021-03-04 14:43:23 +01:00
|
|
|
<ion-card class="core-warning-card" *ngIf="warning">
|
2021-04-27 13:14:31 +02:00
|
|
|
<ion-item>
|
|
|
|
<ion-icon name="fas-exclamation-triangle" slot="start" aria-hidden="true"></ion-icon>
|
|
|
|
<ion-label><span [innerHTML]="warning"></span></ion-label>
|
|
|
|
</ion-item>
|
2021-03-04 14:43:23 +01:00
|
|
|
</ion-card>
|
|
|
|
|
|
|
|
<div class="addon-mod-imscp-container">
|
2022-02-23 14:47:38 +01:00
|
|
|
<core-iframe *ngIf="!showLoading" [src]="src" [showFullscreenOnToolbar]="true" [autoFullscreenOnRotate]="true"></core-iframe>
|
2021-03-04 14:43:23 +01:00
|
|
|
</div>
|
|
|
|
</core-loading>
|
2021-12-03 13:45:23 +01:00
|
|
|
|
2022-02-24 10:42:12 +01:00
|
|
|
<!-- TODO Add a contents page to avoid having both bars -->
|
2022-02-24 14:27:39 +01:00
|
|
|
<core-navigation-bar collapsible-footer *ngIf="!showLoading && navigationItems.length > 1 && false" [items]="navigationItems"
|
|
|
|
(action)="loadItem($event)">
|
2022-02-24 10:42:12 +01:00
|
|
|
</core-navigation-bar>
|
2022-02-24 14:27:39 +01:00
|
|
|
<core-course-module-navigation collapsible-footer [hidden]="showLoading" [courseId]="courseId" [currentModule]="module"
|
2022-02-23 14:47:38 +01:00
|
|
|
(completionChanged)="onCompletionChange()">
|
2021-12-03 13:45:23 +01:00
|
|
|
</core-course-module-navigation>
|