2021-02-08 14:29:11 +01:00
|
|
|
<ion-header>
|
|
|
|
<ion-toolbar>
|
2021-11-23 15:06:01 +01:00
|
|
|
<ion-title>
|
2023-02-13 12:09:10 +01:00
|
|
|
<h1>{{ 'addon.mod_book.toc' | translate }}</h1>
|
2021-11-23 15:06:01 +01:00
|
|
|
</ion-title>
|
2021-02-08 14:29:11 +01:00
|
|
|
<ion-buttons slot="end">
|
2021-05-06 10:56:20 +02:00
|
|
|
<ion-button fill="clear" (click)="closeModal()" [attr.aria-label]="'core.close' | translate">
|
2023-03-14 14:08:09 +01:00
|
|
|
<ion-icon name="fas-xmark" slot="icon-only" aria-hidden=true></ion-icon>
|
2021-02-08 14:29:11 +01:00
|
|
|
</ion-button>
|
|
|
|
</ion-buttons>
|
|
|
|
</ion-toolbar>
|
|
|
|
</ion-header>
|
|
|
|
<ion-content>
|
|
|
|
<nav>
|
|
|
|
<ion-list>
|
|
|
|
<ion-item class="ion-text-wrap" *ngFor="let chapter of chapters" (click)="loadChapter(chapter.id)"
|
2023-11-13 10:05:19 +01:00
|
|
|
[attr.aria-current]="selected == chapter.id ? 'page' : 'false'" button [class.item-dimmed]="chapter.hidden" [detail]="false">
|
2021-02-08 14:29:11 +01:00
|
|
|
<ion-label>
|
2021-07-02 15:51:16 +02:00
|
|
|
<p [class.ion-padding-start]="addPadding && chapter.level == 1 ? true : null" class="item-heading">
|
2023-02-07 16:20:48 +01:00
|
|
|
<span *ngIf="showNumbers" class="addon-mod-book-number">{{chapter.indexNumber}} </span>
|
|
|
|
<span *ngIf="showBullets" class="addon-mod-book-bullet">• </span>
|
2021-11-23 15:06:01 +01:00
|
|
|
<core-format-text [text]="chapter.title" contextLevel="module" [contextInstanceId]="moduleId" [courseId]="courseId">
|
2021-02-08 14:29:11 +01:00
|
|
|
</core-format-text>
|
|
|
|
</p>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
</ion-list>
|
|
|
|
</nav>
|
|
|
|
</ion-content>
|