2021-03-04 14:43:23 +01:00
|
|
|
<!-- Buttons to add to the header. -->
|
|
|
|
<core-navbar-buttons slot="end">
|
2021-04-27 13:14:31 +02:00
|
|
|
<ion-button (click)="showToc()" aria-haspopup="true" [attr.aria-label]="'addon.mod_imscp.toc' | translate">
|
|
|
|
<ion-icon name="fas-bookmark" slot="icon-only" aria-hidden="true"></ion-icon>
|
2021-03-04 14:43:23 +01:00
|
|
|
</ion-button>
|
|
|
|
<core-context-menu>
|
|
|
|
<core-context-menu-item *ngIf="externalUrl" [priority]="900" [content]="'core.openinbrowser' | translate"
|
|
|
|
[href]="externalUrl" iconAction="fas-external-link-alt">
|
|
|
|
</core-context-menu-item>
|
|
|
|
<core-context-menu-item *ngIf="description" [priority]="800" [content]="'core.moduleintro' | translate"
|
|
|
|
(action)="expandDescription()" iconAction="fas-arrow-right">
|
|
|
|
</core-context-menu-item>
|
|
|
|
<core-context-menu-item *ngIf="blog" [priority]="750" content="{{'addon.blog.blog' | translate}}"
|
|
|
|
iconAction="far-newspaper" (action)="gotoBlog()">
|
|
|
|
</core-context-menu-item>
|
|
|
|
<core-context-menu-item [priority]="700" [content]="'core.refresh' | translate" (action)="doRefresh(null, $event)"
|
|
|
|
[iconAction]="refreshIcon" [closeOnClick]="false">
|
|
|
|
</core-context-menu-item>
|
|
|
|
<core-context-menu-item *ngIf="prefetchStatusIcon" [priority]="600" [content]="prefetchText" (action)="prefetch($event)"
|
|
|
|
[iconAction]="prefetchStatusIcon" [closeOnClick]="false">
|
|
|
|
</core-context-menu-item>
|
|
|
|
<core-context-menu-item *ngIf="size" [priority]="500" [content]="'core.clearstoreddata' | translate:{$a: size}"
|
|
|
|
iconDescription="fas-archive" (action)="removeFiles($event)" iconAction="fas-trash" [closeOnClick]="false">
|
|
|
|
</core-context-menu-item>
|
|
|
|
</core-context-menu>
|
|
|
|
</core-navbar-buttons>
|
|
|
|
|
|
|
|
<!-- Content. -->
|
2021-05-28 16:16:34 +02:00
|
|
|
<core-loading [hideUntil]="loaded" class="safe-area-page">
|
2021-03-04 14:43:23 +01:00
|
|
|
|
2021-05-07 10:09:31 +02:00
|
|
|
<!-- Activity info. -->
|
|
|
|
<core-course-module-info *ngIf="showCompletion" [module]="module" [showManualCompletion]="true"
|
|
|
|
(completionChanged)="onCompletionChange()">
|
|
|
|
</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">
|
|
|
|
<core-navigation-bar [previous]="previousItem" [next]="nextItem" (action)="loadItem($event)" [info]="description"
|
|
|
|
[title]="'core.description' | translate" [component]="component" [componentId]="componentId" contextLevel="module"
|
2021-03-12 10:09:38 +01:00
|
|
|
[contextInstanceId]="module.id" [courseId]="courseId">
|
2021-03-04 14:43:23 +01:00
|
|
|
</core-navigation-bar>
|
|
|
|
<core-iframe [src]="src"></core-iframe>
|
|
|
|
</div>
|
|
|
|
</core-loading>
|