<!-- Buttons to add to the header. -->
<core-navbar-buttons slot="end">
    <ion-button fill="clear" (click)="openModuleSummary()" aria-haspopup="true" [ariaLabel]="'core.info' | translate">
        <ion-icon name="fas-circle-info" slot="icon-only" aria-hidden="true" />
    </ion-button>
</core-navbar-buttons>

<!-- Content. -->
<core-loading [hideUntil]="!showLoading">

    <!-- Activity info. -->
    <core-course-module-info [module]="module" [description]="displayDescription && description" [component]="component"
        [componentId]="componentId" [courseId]="courseId" (completionChanged)="onCompletionChange()" />

    <div class="ion-padding">
        <core-format-text [component]="component" [componentId]="componentId" [text]="contents" contextLevel="module"
            [contextInstanceId]="module.id" [courseId]="courseId" />

        <p class="ion-padding-bottom addon-mod_page-timemodified" *ngIf="displayTimemodified && timemodified">
            {{ 'core.lastmodified' | translate}}: {{ timemodified! * 1000 | coreFormatDate }}
        </p>
    </div>

</core-loading>

<core-course-module-navigation collapsible-footer appearOnBottom [hidden]="showLoading" [courseId]="courseId"
    [currentModuleId]="module.id" />
