2021-04-06 16:20:38 +02:00
|
|
|
<ion-header>
|
|
|
|
<ion-toolbar>
|
|
|
|
<ion-title>{{ 'addon.mod_wiki.map' | translate }}</ion-title>
|
|
|
|
<ion-buttons slot="end">
|
|
|
|
<ion-button (click)="closeModal()" [attr.aria-label]="'core.close' | translate">
|
|
|
|
<ion-icon name="close" slot="icon-only"></ion-icon>
|
|
|
|
</ion-button>
|
|
|
|
</ion-buttons>
|
|
|
|
</ion-toolbar>
|
|
|
|
</ion-header>
|
|
|
|
<ion-content>
|
|
|
|
<nav>
|
|
|
|
<ion-list>
|
|
|
|
<!-- Go to "home". -->
|
2021-04-07 10:12:27 +02:00
|
|
|
<ion-item class="ion-text-wrap" *ngIf="homeView" (click)="goToWikiHome()" tappable>
|
2021-04-06 16:20:38 +02:00
|
|
|
<ion-icon name="fas-home" slot="start"></ion-icon>
|
|
|
|
<ion-label>{{ 'addon.mod_wiki.gowikihome' | translate }}</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
<ng-container *ngFor="let letter of map">
|
|
|
|
<ion-item-divider *ngIf="letter.label">
|
|
|
|
<ion-label>{{ letter.label }}</ion-label>
|
|
|
|
</ion-item-divider>
|
|
|
|
<ion-item class="ion-text-wrap" *ngFor="let page of letter.pages" (click)="goToPage(page)"
|
2021-04-07 10:12:27 +02:00
|
|
|
[class.core-selected-item]="selected == page.id" tappable>
|
2021-04-06 16:20:38 +02:00
|
|
|
<ion-icon name="fas-home" slot="start" *ngIf="page.firstpage"></ion-icon>
|
|
|
|
<ion-label>
|
|
|
|
<core-format-text [text]="page.title" contextLevel="module" [contextInstanceId]="moduleId"
|
|
|
|
[courseId]="courseId">
|
|
|
|
</core-format-text>
|
|
|
|
<ion-note *ngIf="!page.id" slot="end">
|
|
|
|
<ion-icon name="time"></ion-icon>
|
|
|
|
<span class="ion-text-wrap">{{ 'core.notsent' | translate }}</span>
|
|
|
|
</ion-note>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
</ng-container>
|
|
|
|
</ion-list>
|
|
|
|
</nav>
|
|
|
|
</ion-content>
|